PHP Class Zend\Mvc\Service\ApplicationFactory

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

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Application Create the Application service (v3)
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Application Create the Application service (v2)

Method Details

__invoke() public method

Creates a Zend\Mvc\Application service, passing it the configuration service and the service manager instance.
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Application
$container Interop\Container\ContainerInterface
$name string
$options array
return Zend\Mvc\Application

createService() public method

Proxies to __invoke().
public createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Application
$container Zend\ServiceManager\ServiceLocatorInterface
return Zend\Mvc\Application