fixed bug in route to controller delegation.
This commit is contained in:
parent
f50a492510
commit
4edcc321aa
|
@ -135,7 +135,7 @@ protected function delegate(Route $route, Delegate $delegate)
|
|||
*/
|
||||
protected function callable($method)
|
||||
{
|
||||
return $method == 'before' or $method == 'after' or strncmp($method, '_', 1) === 0;
|
||||
return $method !== 'before' and $method !== 'after' and strncmp($method, '_', 1) !== 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -136,7 +136,7 @@ public function filters($name)
|
|||
*/
|
||||
public function delegates()
|
||||
{
|
||||
return is_array($this->callback) and isset($this->callback['delegate']);
|
||||
return is_string($this->callback) or (is_array($this->callback) and isset($this->callback['delegate']));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue