Drest\Mapping\Driver\AnnotationDriver::registerAnnotations PHP 메소드

registerAnnotations() 공개 정적인 메소드

Register out annotation classes with the annotation registry.
public static registerAnnotations ( )
    public static function registerAnnotations()
    {
        Annotations\AnnotationRegistry::registerFile(__DIR__ . '/DrestAnnotations.php');
    }

Usage Example

예제 #1
0
 protected function setUp()
 {
     // Register the DREST annotations
     \Drest\Mapping\Driver\AnnotationDriver::registerAnnotations();
     // Register the ORM annotations
     \Doctrine\Common\Annotations\AnnotationRegistry::registerFile(__DIR__ . '/../../vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');
 }
All Usage Examples Of Drest\Mapping\Driver\AnnotationDriver::registerAnnotations