cascade\Config::load PHP Метод

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

Load config options into the options array using the injected loader
public load ( )
    public function load()
    {
        $this->options = $this->loader->load($this->input);
    }

Usage Example

Пример #1
0
 public function testLoggersConfigured()
 {
     $options = Fixtures::getPhpArrayConfig();
     // Mocking the ConfigLoader with the load method
     $configLoader = $this->getMockBuilder('Cascade\\Config\\ConfigLoader')->disableOriginalConstructor()->setMethods(array('load'))->getMock();
     $configLoader->method('load')->willReturn($options);
     $config = new Config($options, $configLoader);
     $config->load();
     $config->configure();
     $this->assertTrue(Registry::hasLogger('my_logger'));
 }
All Usage Examples Of cascade\Config::load