/** * @param boolean $process * * @return File */ public function getFile($process = true) { $config = $this->resource->getManager()->getConfig($this->resource->getName(), $this->name); $path = $this->compilePath($config['path']); $file = new File($path); $file->guess(); if ($process && $this->isProcessable()) { $this->processor->run($this); } return $file; }
/** * @param null $process * * @return File */ public function getFile($process = null) { $config = $this->manager->getConfig($this->name); $path = $this->compilePath($config['path']); $file = new File($path); $file->guess(); return $file; }