Fixed error with calling stop method.

pull/57/merge
Mike Cao 11 years ago
parent 6fe4e32fee
commit 001c8ec301

@ -292,7 +292,9 @@ class Engine {
}
// Allow post-filters to run
$this->after('start', array($this, 'stop'));
$this->after('start', function() {
$this->stop();
});
// Route the request
while ($route = $this->router()->route($this->request())) {

@ -134,6 +134,7 @@ class Dispatcher {
* @param callback $callback Callback function
* @param array $params Function parameters
* @return mixed Function results
* @throws \Exception
*/
public static function execute($callback, array &$params = array()) {
if (is_callable($callback)) {

Loading…
Cancel
Save