Commit 34452f5f authored by Taylor Otwell's avatar Taylor Otwell

minor refactoring.

parent eb956cc8
<?php namespace Laravel\Routing;
interface Destination {
/**
* Get an array of filter names defined for the destination.
*
* @param string $name
* @return array
*/
public function filters($name);
}
\ No newline at end of file
......@@ -74,7 +74,7 @@ class Route implements Destination {
// obviously handle the requests to the route. An array can contain filters, as
// well as a Closure to handle requests to the route. A string, delegates control
// of the request to a controller method.
if ( ! $this->callback instanceof \Closure and ! is_array($this->callback) and ! is_string($this->callback))
if ( ! $this->callback instanceof Closure and ! is_array($this->callback) and ! is_string($this->callback))
{
throw new \Exception('Invalid route defined for URI ['.$this->key.']');
}
......
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