Components_Dependencies_Injector::initConfig PHP Method

initConfig() public method

Initial configuration setup.
public initConfig ( Components_Config $config ) : null
$config Components_Config The configuration.
return null
    public function initConfig(Components_Config $config)
    {
        $this->setInstance('Components_Config', $config);
    }

Usage Example

Esempio n. 1
0
 protected function getComponent($directory, $arguments = array(), $options = array())
 {
     $dependencies = new Components_Dependencies_Injector();
     $config = new Components_Stub_Config($arguments, $options);
     $dependencies->initConfig($config);
     $factory = $dependencies->getComponentFactory();
     return new Components_Component_Source($directory, $config, $factory);
 }
All Usage Examples Of Components_Dependencies_Injector::initConfig