src/Core/ControllerResolver.php
protected function createController($controller)
    {
        list($class, $method) = explode('::', $controller, 2);

        if (!class_exists($class)) {
            throw new \InvalidArgumentException(sprintf('Class "%s" does not exist.', $class));
        }

        $controller = new $class();
        if ($controller instanceof ControllerInterface) {
            $controller->setContainer($this->container);
        }

        return [
            $controller,
            $method
        ];
    }
protected function createController($controller)
    {
        list($class, $method) = explode('::', $controller, 2);

        if (!class_exists($class)) {
            throw new \InvalidArgumentException(sprintf('Class "%s" does not exist.', $class));
        }

        $controller = new $class();
        if ($controller instanceof ControllerInterface) {
            $controller->setContainer($this->container);
        }

        return [
            $controller,
            $method
        ];
    }
@param string $controller

@return array

@throws \InvalidArgumentException