original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Configure instance and inject it into controller plugin manager
  
  @param MvcEvent $event
docstring_tokens: Configure instance and inject it into controller plugin manager