Example #1
0
 /**
  * @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;
 }
Example #2
0
 /**
  * @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;
 }