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

public isLoaded ( )
Пример #1
0
 public function init()
 {
     parent::init();
     // softly load the config file.
     $this->config = ConfigLoader::getInstance();
     $this->config->loadFromSymbol(true);
     // force loading
     if ($this->config->isLoaded()) {
         $this->config->initForBuild();
     }
 }
Пример #2
0
 public function getConfigLoader($required = true)
 {
     if (!$this->config) {
         $this->config = ConfigLoader::getInstance();
         $this->config->loadFromSymbol(true);
         // force loading
         if (!$this->config->isLoaded() && $required) {
             throw new RuntimeException("ConfigLoader did not loaded any config file. Can't initialize the settings.");
         }
     }
     return $this->config;
 }