PHP Class Jarves\JarvesEventDispatcher

显示文件 Open project: jarves/jarves

Protected Properties

Property Type Description
$attachedEvents array

Public Methods

Method Description
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Symfony\Component\DependencyInjection\ContainerInterface $container, ConditionOperator $conditionOperator, Cacher $cacher )
attachEvent ( Event $event )
call ( Event $eventConfig, Symfony\Component\EventDispatcher\GenericEvent $event )
detachEvents ( )
getAttachedEvents ( ) : array
isCallable ( Event $eventConfig, Symfony\Component\EventDispatcher\GenericEvent $event ) : boolean Checks whether a eventConfig is appropriate to be called (subject fits, condition fits)
registerBundleEvents ( Configs $configs )

Method Details

__construct() public method

public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Symfony\Component\DependencyInjection\ContainerInterface $container, ConditionOperator $conditionOperator, Cacher $cacher )
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$container Symfony\Component\DependencyInjection\ContainerInterface
$conditionOperator ConditionOperator
$cacher Jarves\Cache\Cacher

attachEvent() public method

public attachEvent ( Event $event )
$event Jarves\Configuration\Event

call() public method

public call ( Event $eventConfig, Symfony\Component\EventDispatcher\GenericEvent $event )
$eventConfig Jarves\Configuration\Event
$event Symfony\Component\EventDispatcher\GenericEvent

detachEvents() public method

public detachEvents ( )

getAttachedEvents() public method

public getAttachedEvents ( ) : array
return array

isCallable() public method

Checks whether a eventConfig is appropriate to be called (subject fits, condition fits)
public isCallable ( Event $eventConfig, Symfony\Component\EventDispatcher\GenericEvent $event ) : boolean
$eventConfig Jarves\Configuration\Event
$event Symfony\Component\EventDispatcher\GenericEvent
return boolean

registerBundleEvents() public method

public registerBundleEvents ( Configs $configs )
$configs Jarves\Configuration\Configs

Property Details

$attachedEvents protected_oe property

protected array $attachedEvents
return array