Frontend\Core\Engine\Block\Extra::loadConfig PHP Метод

loadConfig() публичный Метод

In the config file we have to find disabled actions, the constructor will read the folder and set possible actions Other configurations will also be stored in it.
public loadConfig ( )
    public function loadConfig()
    {
        $configClass = 'Frontend\\Modules\\' . $this->getModule() . '\\Config';
        if ($this->getModule() == 'Core') {
            $configClass = 'Frontend\\Core\\Config';
        }
        // validate if class exists (aka has correct name)
        if (!class_exists($configClass)) {
            throw new FrontendException('The config file ' . $configClass . ' could not be found.');
        }
        // create config-object, the constructor will do some magic
        $this->config = new $configClass($this->getKernel(), $this->getModule());
    }