Skip to content

Commit

Permalink
Update file FileViewFinder.php add function prependLocation
Browse files Browse the repository at this point in the history
Update file FileViewFinder.php add function prependLocation
  • Loading branch information
mohamedsharaf authored Aug 28, 2016
1 parent 3f535b9 commit c725ccb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/View/FileViewFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ public function addLocation($location)
{
$this->paths[] = $location;
}
/**
* Prepend a location to the finder.
*
* @param string $location
* @return void
*/
public function prependLocation($location)
{
array_unshift($this->paths, $location);
}

/**
* Add a namespace hint to the finder.
Expand Down

0 comments on commit c725ccb

Please sign in to comment.