/** * 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); }
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']); } }
public function dir($name, \Coast\Dir $dir) { $this->getConfiguration()->getMetadataDriverImpl()->addPaths([$name => $dir->name()]); }