\Acl\AssertionAssertionManager

Plugin manager for assertions.

Summary

Methods
Properties
Constants
__construct()
injectEventManager()
validatePlugin()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, \Zend\ServiceManager\ConfigInterface $configuration)

Creates an instance.

{@inheritDoc}

Adds an additional initializer to inject an event manager to assertions implementing {@link EventManagerAwareInterface}.

Parameters

\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator
\Zend\ServiceManager\ConfigInterface $configuration

injectEventManager()

injectEventManager(\Zend\Permissions\Acl\Assertion\AssertionInterface $assertion, \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator)

Injects a shared event manager aware event manager.

Parameters

\Zend\Permissions\Acl\Assertion\AssertionInterface $assertion
\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator

validatePlugin()

validatePlugin(mixed $plugin)

Validates assertions.

Checks that the assertion implements AssertionInterface.

Parameters

mixed $plugin

Throws

\RuntimeException

if invalid