code: public static function factory(ContainerInterface $container)
      {
          $sharedManager = $container->get('Application')->getEventManager()->getSharedManager();
          $instance = new NotificationListener($sharedManager);
          $instance->setEventPrototype(new NotificationEvent());
          return $instance;
      }
docs: @param ContainerInterface $container
  
  @return NotificationListener