protected function getRoute($controller)
    {
        $routes = $this->router->getRouteCollection()->all();
        foreach ($routes as $name => $route) {
            if ($controller === $route->getDefault('_controller')) {
                return [ $name, $route ];
            }
        }

        return null;
    }