protected function registerMiddleware()
    {
        $this->app->bind('tactician.middleware', function() {
            $middleware = $this->config('middleware');
            $resolved   = array_map(function($name) {
                if (is_string($name)) {
                    return $this->app->make($name);
                }
                return $name;
            }, $middleware);

            $resolved[] = $this->app['tactician.handler'];

            return $resolved;
        });
    }