PHP Class Zend\Mvc\Service\ConfigFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Exibir arquivo Open project: zendframework/zend-mvc

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : array | Traversable Create the application configuration service
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : array | Traversable Create and return config instance

Method Details

__invoke() public method

Retrieves the Module Manager from the service locator, and executes {@link Zend\ModuleManager\ModuleManager::loadModules()}. It then retrieves the config listener from the module manager, and from that the merged configuration.
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : array | Traversable
$container Interop\Container\ContainerInterface
$name string
$options array
return array | Traversable

createService() public method

For use with zend-servicemanager v2; proxies to __invoke().
public createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : array | Traversable
$container Zend\ServiceManager\ServiceLocatorInterface
return array | Traversable