public function testIs() { $event = new Event('Psc.Test', $this); $this->assertTrue($event->is('Psc.Test')); $this->assertFalse($event->is('Psc.Blubb')); }
public function trigger(Event $event) { if ($event->is(\Psc\Doctrine\Module::EVENT_BOOTSTRAPPED)) { \Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace('\\Psc\\Code\\Compile\\Annotations', (string) PSC::getProject('psc-cms')->getClassPath()->up()); } }