Upgraded to Phalcon 3.3.2 recently.
I'm having a basic MVC application here that create fatal errors when trying to throw exception:
Warning: Invalid callback Phalcon\Mvc\Dispatcher\Exception::construct, cannot access protected method Phalcon\Mvc\Dispatcher\Exception::construct() in [path]/public/index.php on line 175
Fatal error: Uncaught RuntimeException: Call to undefined method [weird character]::__construct() in [path]/public/index.php:175 Stack trace: #0 [internal function]: Phalcon\Mvc\Dispatcher->_throwDispatchException('MyControl...', 2) #1 [internal function]: Phalcon\Dispatcher->dispatch() #2 [path]/public/index.php(175): Phalcon\Mvc\Application->handle() #3 {main} thrown in [path]/public/index.php on line 175
Is anyone else having the issue?
here is my index.php (very basic stuff...):
$di = new Phalcon\DI\FactoryDefault();
$di->set('router', function() {
$router = new \Phalcon\Mvc\Router(false);
$router->removeExtraSlashes(true);
$router->add("/:controller", [
'controller' => 1
]);
$router->add("/:controller/:action", [
'controller' => 1,
'action' => 2
]);
$router->add("/:controller/:action/:params", [
'controller' => 1,
'action' => 2,
'params' => 3
]);
return $router;
});
$application = new \Phalcon\Mvc\Application($di);
echo $application->handle()->getContent();
Now just hit a route that don't have a controller and you'll get the error.