Zend\Mvc\Application::getServiceManager PHP Method

getServiceManager() public method

Retrieve the service manager
public getServiceManager ( ) : Zend\ServiceManager\ServiceManager
return Zend\ServiceManager\ServiceManager
    public function getServiceManager()
    {
        return $this->serviceManager;
    }

Usage Example

Ejemplo n.º 1
0
 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->app = \Bootstrap::$app;
     $this->sm = $this->app->getServiceManager();
     $this->evm = $this->app->getEventManager();
 }
All Usage Examples Of Zend\Mvc\Application::getServiceManager