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

public loadFromSymbol ( $force = false )
Пример #1
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;
 }
Пример #2
0
 public function testLoadFromSymbol()
 {
     $config = new ConfigLoader();
     $config->loadFromSymbol(true);
     $config->setDefaultDataSourceId('mysql');
     $this->assertEquals('mysql', $config->getDefaultDataSourceId());
 }
Пример #3
0
 public function testLoadFromSymbol()
 {
     $config = new ConfigLoader();
     $config->loadFromSymbol();
     $this->assertTrue($config->loaded);
 }