Inheritance: implements Drest\Mapping\Driver\DriverInterface
Beispiel #1
0
 public function __construct($paths)
 {
     parent::__construct($paths);
     $filename = self::$configuration_filepath . DIRECTORY_SEPARATOR . self::$configuration_filename;
     $file_parts = pathinfo($filename);
     if ($file_parts['extension'] == 'php') {
         if (!file_exists($filename)) {
             throw new \RuntimeException('The configuration file does not exist at this path: ' . $filename);
         }
         $resources = (include $filename);
         if (!is_array($resources)) {
             throw new \RuntimeException('The configuration file does not return the configuration: ' . $filename);
         }
         $this->classes = $resources;
     }
 }
Beispiel #2
0
 public function __construct(Annotations\AnnotationReader $reader, $paths = [])
 {
     parent::__construct($paths);
     $this->reader = $reader;
 }
Beispiel #3
0
 public function __construct($paths)
 {
     parent::__construct($paths);
 }