public function addAction($action, $callback)
    {
        if (!is_callable($callback)) {
            throw new \Exception('Callback is not callable.');
        }

        $this->getLogger()->info('[SERVICE] Registering: '.$action);

        $this->actions[$action] = $callback;

        return $this;
    }