initConfig() 공개 메소드

Initial configuration setup.
public initConfig ( Components_Config $config ) : null
$config Components_Config The configuration.
리턴 null
예제 #1
0
파일: TestCase.php 프로젝트: horde/horde
 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);
 }
예제 #2
0
 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();
 }