public function setServiceController($key, $class)
    {
        $this->container[$key] = function () use ($class) {
            $serviceController = $this->container->singleton(\Cygnite\Mvc\Controller\ServiceController::class);
            $instance = new $class($serviceController, $this->container);
            $serviceController->setController($class);

            return $instance;
        };
    }