Commit 4326f959 authored by Taylor Otwell's avatar Taylor Otwell

Don't throw an exception if a filter is not found.

parent 5a2dfd72
......@@ -42,10 +42,7 @@ class Filter {
{
foreach (explode(', ', $filters) as $filter)
{
if ( ! isset(static::$filters[$filter]))
{
throw new \Exception("Route filter [$filter] is not defined.");
}
if ( ! isset(static::$filters[$filter])) continue;
$response = call_user_func_array(static::$filters[$filter], $parameters);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment