コード例 #1
0
ファイル: EventTest.php プロジェクト: pscheit/psc-cms
 public function testIs()
 {
     $event = new Event('Psc.Test', $this);
     $this->assertTrue($event->is('Psc.Test'));
     $this->assertFalse($event->is('Psc.Blubb'));
 }
コード例 #2
0
ファイル: Project.php プロジェクト: pscheit/psc-cms
 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());
     }
 }