Ejemplo n.º 1
0
 public function testIs()
 {
     $event = new Event('Psc.Test', $this);
     $this->assertTrue($event->is('Psc.Test'));
     $this->assertFalse($event->is('Psc.Blubb'));
 }
Ejemplo n.º 2
0
 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());
     }
 }