Ejemplo n.º 1
0
 /**
  * Search through all bound paths to find the asset file
  *
  * @param  string  $key
  * @param  array   $paths
  * @return string
  */
 protected function findInPaths($key, array $paths)
 {
     $found = false;
     foreach ($paths as $path) {
         if ($this->filesystem->isFile($asset = $path . $key)) {
             $found = $asset;
             break;
         }
     }
     return $found;
 }
Ejemplo n.º 2
0
 protected function findInPaths($key, $paths)
 {
     $found = false;
     foreach ((array) $paths as $path) {
         if ($this->filesystem->isFile($template = $path . $key . '.php')) {
             $found = $template;
             break;
         }
     }
     return $found;
 }