Exemplo n.º 1
0
 /**
  * Get child file.
  * @return Coast\File
  */
 public function file($path)
 {
     if (!isset($this->_baseDir)) {
         throw new App\Exception('Base directory not set');
     }
     return $this->_baseDir->file($path);
 }
Exemplo n.º 2
0
 protected function _meta($group, Dir $dir)
 {
     $meta = $dir->file('_.php');
     if (!$meta->exists()) {
         return;
     }
     $meta = (include $meta->name());
     if (isset($meta['extensions'])) {
         $this->extensions($group, $meta['extensions']);
     }
 }
Exemplo n.º 3
0
 public function dir($name, \Coast\Dir $dir)
 {
     $this->getConfiguration()->getMetadataDriverImpl()->addPaths([$name => $dir->name()]);
 }