<?php
//...
class ControllerBase extends Controller
{
public function beforeExecuteRoute(Dispatcher $dispatcher)
{
// TODO Add following code at top of this function
// Set transaction name based on the route.
$moduleName = $dispatcher->getModuleName();
$controllerName = $dispatcher->getControllerName();
$actionName = $dispatcher->getActionName();
if (extension_loaded ('atatus')) {
atatus_set_transaction_name ($moduleName. '/'. $controllerName . '/' . $actionName);
}
//...
}
}