Lines Matching refs:addListener
31 $this->dispatcher->addListener('foo', static function () {
36 $this->dispatcher->addListener('bar', static function () {
39 $this->dispatcher->addListener('bar', static function () {
42 $this->dispatcher->addListener('bar', static function () {
48 $this->dispatcher->addListener('baz', static function () {
57 $this->dispatcher->addListener('foo', [$a, 'Foo']);
62 $this->dispatcher->addListener('pre', [$b, 'bar'], 'Bar');
63 $this->dispatcher->addListener('pre', [$b, 'foo'], 'Foo');
64 $this->dispatcher->addListener('pre', [$b, 'all']);
81 $this->dispatcher->addListener('pre', [$a, 'onlyProxy'], 'Bar', 'json', Proxy::class);
82 $this->dispatcher->addListener('pre', [$a, 'all'], 'Bar', 'json');
100 $this->dispatcher->addListener('pre', [$a, 'onlyProxy'], 'Bar', 'json', Proxy::class);
101 $this->dispatcher->addListener('pre', [$a, 'all'], 'Bar', 'json');
119 $this->dispatcher->addListener('pre', static function (Event $event) use (&$listener1) {
124 $this->dispatcher->addListener('pre', static function () use (&$listener2) {
140 …$this->dispatcher->addListener('pre', static function (Event $event, $eventName, $loweredClass, $f…
152 $this->dispatcher->addListener('pre', static function () use (&$listener2) {
156 …$this->dispatcher->addListener('post', static function (Event $event, $eventName, $loweredClass, $…