Backend\Core\Engine\Cronjob::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 be stored in it also.
public loadConfig ( )
    public function loadConfig()
    {
        // check if we can load the config file
        $configClass = 'Backend\\Modules\\' . $this->getModule() . '\\Config';
        // is the Core module
        if ($this->getModule() == 'Core') {
            $configClass = 'Backend\\Core\\Config';
        }
        // validate if class exists (aka has correct name)
        if (!class_exists($configClass)) {
            throw new Exception('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());
    }