src/Routes/Controller.php
public function afterAction($actionId, $result = null)
    {
        $this->emit(self::EVENT_AFTER_ACTION, [&$this, $actionId, &$result]);
        return $result;
    }
public function afterAction($actionId, $result = null)
    {
        $this->emit(self::EVENT_AFTER_ACTION, [&$this, $actionId, &$result]);
        return $result;
    }
This method is invoked right after an action is executed.

The method will trigger the [[EVENT_AFTER_ACTION]] event. The return value of the method
will be used as the action return value.

If you override this method, your code should look like the following:

```php
public function afterAction($action, $result)
{
$result = parent::afterAction($action, $result);
// your custom code here
return $result;
}
```

@param string $actionId the action just executed.
@param mixed  $result the action return result.
@return mixed the processed action result.