Inheritance: implements Drest\Mapping\Driver\DriverInterface
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 2
0
 public function __construct(Annotations\AnnotationReader $reader, $paths = [])
 {
     parent::__construct($paths);
     $this->reader = $reader;
 }
Ejemplo n.º 3
0
 public function __construct($paths)
 {
     parent::__construct($paths);
 }