Zend Framework  3.0
Public Member Functions | List of all members
EventManagerFactory Class Reference

Public Member Functions

 __invoke (ContainerInterface $container, $name, array $options=null)
 Create an EventManager instance.
 
 createService (ServiceLocatorInterface $container)
 Create and return EventManager instance.
 

Member Function Documentation

__invoke ( ContainerInterface  $container,
  $name,
array  $options = null 
)

Create an EventManager instance.

Creates a new EventManager instance, seeding it with a shared instance of SharedEventManager.

Parameters
ContainerInterface$container
string$name
null | array$options
Returns
EventManager

Implements FactoryInterface.

createService ( ServiceLocatorInterface  $container)

Create and return EventManager instance.

For use with zend-servicemanager v2; proxies to __invoke().

Parameters
ServiceLocatorInterface$container
Returns
EventManager

Implements FactoryInterface.