Initial configuration setup.
public initConfig ( Components_Config $config ) : null | ||
$config | Components_Config | The configuration. |
Résultat | null |
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); }
private function _initIdentify($arguments, $options = array(), $dependencies = null) { if ($dependencies === null) { $dependencies = new Components_Dependencies_Injector(); } $this->config = new Components_Stub_Config($arguments, $options); $dependencies->initConfig($this->config); $identify = new Components_Component_Identify($this->config, array('list' => array('test'), 'missing_argument' => array('help')), $dependencies); $identify->setComponentInConfiguration(); }