PHP Class Zend\Mvc\Service\ServiceManagerConfig

Inheritance: extends Zend\ServiceManager\Config
Mostra file Open project: zendframework/zend-mvc Class Usage Examples

Protected Properties

Property Type Description
$config array In addition to these, the constructor registers several factories and initializers; see that method for details.

Public Methods

Method Description
__construct ( array $config = [] ) Constructor
configureServiceManager ( Zend\ServiceManager\ServiceManager $services ) : Zend\ServiceManager\ServiceManager Configure service container.
toArray ( ) : array Return all service configuration (v3)

Method Details

__construct() public method

Merges internal arrays with those passed via configuration, and also defines: - factory for the service 'SharedEventManager'. - initializer for EventManagerAwareInterface implementations
public __construct ( array $config = [] )
$config array

configureServiceManager() public method

Uses the configuration present in the instance to configure the provided service container. Before doing so, it adds a "service" entry for the ServiceManager class, pointing to the provided service container.
public configureServiceManager ( Zend\ServiceManager\ServiceManager $services ) : Zend\ServiceManager\ServiceManager
$services Zend\ServiceManager\ServiceManager
return Zend\ServiceManager\ServiceManager

toArray() public method

Return all service configuration (v3)
public toArray ( ) : array
return array

Property Details

$config protected_oe property

In addition to these, the constructor registers several factories and initializers; see that method for details.
protected array $config
return array