protected function loadActions()
    {
        if ($config = $this->loadConfigFile('actions.php')) {
            $app      = $this->app;
            $renderer = $this->renderer;

            foreach ($config as $actionName => $provider) {
                if (is_string($provider) && is_subclass_of($provider, 'Tev\Plugin\Action\AbstractProvider')) {
                    $ap = new $provider($this->app, $this->renderer);

                    add_action($actionName, function () use ($ap) {
                        return call_user_func_array(array($ap, 'action'), func_get_args());
                    }, $ap->priority(), $ap->numArgs());
                } elseif ($provider instanceof Closure) {
                    add_action($actionName, function () use ($provider)
                    {
                        return call_user_func($provider, func_get_args());
                    });
                }
            }
        }

        return $this;
    }