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

Returns a component instance factory.
public getComponentFactory ( ) : Components_Component_Factory
Результат Components_Component_Factory The component factory.
Пример #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);
 }