Skip to content

Commit

Permalink
Update MediabrowserController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
spescina committed Dec 3, 2014
1 parent 93cbdf0 commit bd660f3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Spescina/Mediabrowser/Controllers/MediabrowserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@

class MediabrowserController extends Controller {

/**
* Controller constructor
*/
public function __construct()
{
$filters = Config::get('mediabrowser::mediabrowser.filters');

foreach ($filters['before'] as $filterName => $filterOptions)
{
$this->beforeFilter($filterName, $filterOptions);
}

foreach ($filters['after'] as $filterName => $filterOptions)
{
$this->afterFilter($filterName, $filterOptions);
}
}

/**
* Load the library interface
*
Expand Down

0 comments on commit bd660f3

Please sign in to comment.