/**
* {@inheritdoc}
*/
protected function completeRequest(MvcEvent $event)
{
parent::completeRequest($event);
/**
* Log route information
*/
if (Pi::service()->hasService('log')) {
if ($this->getRouteMatch()) {
Pi::service('log')->info(sprintf('Route: %s:%s-%s-%s.', $this->getSection(), $this->getRouteMatch()->getParam('module'), $this->getRouteMatch()->getParam('controller'), $this->getRouteMatch()->getParam('action')));
} else {
Pi::service('log')->err($event->getError());
}
}
return $this;
}