src/Viserio/Component/Routing/Command/RouteListCommand.php
protected function getRouteInformation(RouteContract $route): ?array
    {
        $actions = \explode('@', $route->getActionName());

        return $this->filterRoute([
            'method'     => $route->getMethods(),
            'uri'        => $route->getUri(),
            'name'       => \is_string($route->getName()) ? "<fg=green>{$route->getName()}</>" : '-',
            'controller' => isset($actions[0]) ? "<fg=cyan>{$actions[0]}</>" : '-',
            'action'     => isset($actions[1]) ? "<fg=red>{$actions[1]}</>" : '-',
        ]);
    }
protected function getRouteInformation(RouteContract $route): ?array
    {
        $actions = \explode('@', $route->getActionName());

        return $this->filterRoute([
            'method'     => $route->getMethods(),
            'uri'        => $route->getUri(),
            'name'       => \is_string($route->getName()) ? "<fg=green>{$route->getName()}</>" : '-',
            'controller' => isset($actions[0]) ? "<fg=cyan>{$actions[0]}</>" : '-',
            'action'     => isset($actions[1]) ? "<fg=red>{$actions[1]}</>" : '-',
        ]);
    }
Get the route information for a given route.

@param \Viserio\Component\Contract\Routing\Route $route

@return null|array