src/Listener/NotificationListener.php
public static function factory(ContainerInterface $container)
    {
        $sharedManager = $container->get('Application')->getEventManager()->getSharedManager();
        $instance = new NotificationListener($sharedManager);
        $instance->setEventPrototype(new NotificationEvent());
        return $instance;
    }
public static function factory(ContainerInterface $container)
    {
        $sharedManager = $container->get('Application')->getEventManager()->getSharedManager();
        $instance = new NotificationListener($sharedManager);
        $instance->setEventPrototype(new NotificationEvent());
        return $instance;
    }
public static function factory ( ContainerInterface $ container ) { $ sharedManager = $ container -> get ( 'Application' ) -> getEventManager ( ) -> getSharedManager ( ) ; $ instance = new NotificationListener ( $ sharedManager ) ; $ instance -> setEventPrototype ( new NotificationEvent ( ) ) ; return $ instance ; }
@param ContainerInterface $container

@return NotificationListener
@param ContainerInterface $container