PHP 클래스 Zend\Mvc\Service\ModuleManagerFactory

상속: implements Zend\ServiceManager\FactoryInterface
파일 보기 프로젝트 열기: zendframework/zend-mvc 1 사용 예제들

공개 메소드들

메소드 설명
__invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\ModuleManager\ModuleManager Creates and returns the module manager
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\ModuleManager\ModuleManager Create and return ModuleManager instance

메소드 상세

__invoke() 공개 메소드

Instantiates the default module listeners, providing them configuration from the "module_listener_options" key of the ApplicationConfig service. Also sets the default config glob path. Module manager is instantiated and provided with an EventManager, to which the default listener aggregate is attached. The ModuleEvent is also created and attached to the module manager.
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\ModuleManager\ModuleManager
$container Interop\Container\ContainerInterface
$name string
$options array
리턴 Zend\ModuleManager\ModuleManager

createService() 공개 메소드

For use with zend-servicemanager v2; proxies to __invoke().
public createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\ModuleManager\ModuleManager
$container Zend\ServiceManager\ServiceLocatorInterface
리턴 Zend\ModuleManager\ModuleManager