Lines Matching refs:dispatcher
25 self::assertFalse($this->dispatcher->hasListeners('foo', 'Foo', 'json'));
26 $this->dispatcher->addListener('foo', ['a', 'foo']);
27 self::assertTrue($this->dispatcher->hasListeners('foo', 'Foo', 'json'));
35 $this->dispatcher->addListener('foo', ['a', 'foo']);
42 $this->dispatcher->addListener('pre', ['b', 'bar'], 'Bar');
43 $this->dispatcher->addListener('pre', ['b', 'foo'], 'Foo');
44 $this->dispatcher->addListener('pre', ['b', 'all']);
46 $b->bar($this->event, 'pre', 'Bar', 'json', $this->dispatcher);
47 $b->all($this->event, 'pre', 'Bar', 'json', $this->dispatcher);
48 $b->foo($this->event, 'pre', 'Foo', 'json', $this->dispatcher);
49 $b->all($this->event, 'pre', 'Foo', 'json', $this->dispatcher);