src/Neutrino/Foundation/Cli/Tasks/HelperTask.php
private function resolveRoute($class, $action)
    {
        $routes = $this->router->getRoutes();

        $findedRoute = null;
        foreach ($routes as $route) {
            /** @var Route $route */

            $paths = $route->getPaths();

            if ($paths['task'] == $class) {
                if (Arr::fetch($paths, 'action', 'main') . $this->dispatcher->getActionSuffix() == $action) {
                    $findedRoute = $route;
                    break;
                }
            }
        }

        if (!empty($findedRoute)) {
            return $findedRoute;
        }

        return null;
    }
private function resolveRoute($class, $action)
    {
        $routes = $this->router->getRoutes();

        $findedRoute = null;
        foreach ($routes as $route) {
            /** @var Route $route */

            $paths = $route->getPaths();

            if ($paths['task'] == $class) {
                if (Arr::fetch($paths, 'action', 'main') . $this->dispatcher->getActionSuffix() == $action) {
                    $findedRoute = $route;
                    break;
                }
            }
        }

        if (!empty($findedRoute)) {
            return $findedRoute;
        }

        return null;
    }
@param $class
@param $action

@return null|Route