src/Viserio/Component/Routing/Route.php
public function getController()
    {
        [$class] = \explode('@', $this->action['uses']);

        if ($this->controller === null) {
            if ($this->container !== null) {
                $container = $this->container;

                if ($container->has($class)) {
                    $this->controller = $container->get($class);
                } elseif ($container instanceof FactoryContract) {
                    $this->controller = $container->resolve($class);
                }
            } else {
                $this->controller = new $class();
            }
        }

        return $this->controller;
    }
public function getController()
    {
        [$class] = \explode('@', $this->action['uses']);

        if ($this->controller === null) {
            if ($this->container !== null) {
                $container = $this->container;

                if ($container->has($class)) {
                    $this->controller = $container->get($class);
                } elseif ($container instanceof FactoryContract) {
                    $this->controller = $container->resolve($class);
                }
            } else {
                $this->controller = new $class();
            }
        }

        return $this->controller;
    }
{@inheritdoc}