AsEventListener

Service tag to autoconfigure event listeners.

Attributes
#[Attribute]
\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE

Table of Contents

Constants

TAG_NAME  = 'event.listener'

Properties

$after  : string|null
$before  : string|null
$event  : string|null
$identifier  : string|null
$method  : string|null

Methods

__construct()  : mixed

Constants

TAG_NAME

public mixed TAG_NAME = 'event.listener'

Properties

$identifier

public string|null $identifier = null

Methods

__construct()

public __construct([string|null $identifier = null ][, string|null $event = null ][, string|null $method = null ][, string|null $before = null ][, string|null $after = null ]) : mixed
Parameters
$identifier : string|null = null
$event : string|null = null
$method : string|null = null
$before : string|null = null
$after : string|null = null

        
On this page

Search results