コード例 #1
0
 /**
  * Call the given route filter.
  *
  * @param  \Illuminate\Routing\Route  $route
  * @param  string  $filter
  * @param  \Symfony\Component\HttpFoundation\Request  $request
  * @param  array  $parameters
  * @return mixed
  */
 protected function callFilter($route, $filter, $request, $parameters = array())
 {
     if (isset($this->callbackFilters[$filter])) {
         $callback = $this->callbackFilters[$filter];
         return call_user_func_array($callback, array_merge(array($route, $request), $parameters));
     }
     return $route->callFilter($filter, $request, $parameters);
 }