Drest\Mapping\Driver\AnnotationDriver::registerAnnotations PHP Method

registerAnnotations() public static method

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

Usage Example

Beispiel #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