$app = new \Phalcon\Mvc\Micro();
$eventsManager = new \Phalcon\Events\Manager();
$eventsManager->attach('dispatch:beforeExecuteRoute',
function($event, $dispatcher, $exception) {
throw new \Phalcon\Exception('Fired up!');
});
$dispatcher = new \Phalcon\Mvc\Dispatcher();
$dispatcher->setEventsManager($eventsManager);
$app->setService('dispatch', $dispatcher);
public function beforeExecuteRoute()
{
$this->view->setVar('param', 'ExecuteRoute');
}
Issue, видимо, этот. Аналогично поломался copy/paste на mint 15 (13.10). Сегодня обновил java 8, все заработало.
java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b115)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b57, mixed mode)