Components_Dependencies_Injector::getComponentFactory PHP 메소드

getComponentFactory() 공개 메소드

Returns a component instance factory.
public getComponentFactory ( ) : Components_Component_Factory
리턴 Components_Component_Factory The component factory.
    public function getComponentFactory()
    {
        return $this->getInstance('Components_Component_Factory');
    }

Usage Example

예제 #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);
 }