public function initialize(MvcEvent $event)
    {
        $appConfig = $event->getApplication()->getServiceManager()->get('config');
        if (array_key_exists(self::CONFIG_KEY, $appConfig)) {
            $this->configure($appConfig[self::CONFIG_KEY]);
        }
        
        $event->getApplication()
            ->getServiceManager()
            ->get('controllerPluginManager')
            ->setService($this->pluginName, $this);
    }
public function initialize(MvcEvent $event)
    {
        $appConfig = $event->getApplication()->getServiceManager()->get('config');
        if (array_key_exists(self::CONFIG_KEY, $appConfig)) {
            $this->configure($appConfig[self::CONFIG_KEY]);
        }
        
        $event->getApplication()
            ->getServiceManager()
            ->get('controllerPluginManager')
            ->setService($this->pluginName, $this);
    }
public function initialize ( MvcEvent $ event ) { $ appConfig = $ event -> getApplication ( ) -> getServiceManager ( ) -> get ( 'config' ) ; if ( array_key_exists ( self :: CONFIG_KEY , $ appConfig ) ) { $ this -> configure ( $ appConfig [ self :: CONFIG_KEY ] ) ; } $ event -> getApplication ( ) -> getServiceManager ( ) -> get ( 'controllerPluginManager' ) -> setService ( $ this -> pluginName , $ this ) ; }
Configure instance and inject it into controller plugin manager

@param MvcEvent $event
Configure instance and inject it into controller plugin manager