Get Route
@return array
3325
private function getRule()
    {
        $requestMethod = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : '';
        $routeRuleCustom = isset($this->rule[$requestMethod]) ? $this->rule[$requestMethod] : array();
        $routeRuleAny = isset($this->rule[RouteMethod::ANY]) ? $this->rule[RouteMethod::ANY] : array();
        $routeRule = array_merge($routeRuleAny, $routeRuleCustom);
        $routeRuleNew = array();
        foreach ($routeRule as $key => $value) {
            $key = rtrim($key, '/');
            $routeRuleNew[$key] = $value;
            $routeRuleNew[$key . '/'] = $value;
        }
        return $routeRuleNew;
    }
178158
public function getServiceRoutingMap()
    {
        $ret = [];
        $optionRoutes = $this->getOptionRoutes();

        foreach ($optionRoutes as $routeName => $optionRoute) {
            // get base name from options action
            $routeParts = explode('.', $routeName);
            if (count($routeParts) < 3) {
                continue;
            }
            array_pop($routeParts); // get rid of last part
            $baseName = implode('.', $routeParts);

            // get routes from same controller
            foreach ($this->getRoutesByBasename($baseName) as $routeName => $route) {
                // don't put schema stuff
                if (strpos('schema', strtolower($routeName)) === false) {
                    $ret[$baseName][$routeName] = $route;
                }
            }
        }

        return $ret;
    }
183138
public function getRoutingResourcesPaths()
    {
        $ds = DIRECTORY_SEPARATOR;
        $path = $this->getPath().$ds.'Resources'.$ds.'config'.$ds.'routing.yml';

        if (file_exists($path)) {
            return [$path];
        }

        return [];
    }
998082
public function collectRoutes()
    {
        $routes = [];

        foreach($this->getCollectors() as $collector) {
            $routes = array_merge($routes, $collector->collectRoutes());
        }

        return $routes;
    }
347045
public function getRouteParams()
    {
        if (empty($this->routeParams)) {
            $this->routeParams = Base::instance()->get('PARAMS');
            unset($this->routeParams[0]);
        }

        return $this->routeParams;
    }
507127
public static function getRouteInfo()
    {
        $action 				= \Route::current()->getActionName();
        list($class, $method) 	= explode('@', $action);
        return ['controller_name' => ltrim($class, '\\'), 'method_name' => $method];
    }
703172
protected function getRoutes()
    {
        $route = $this->getRequestParameter('route');
        if (empty($route)) {
            throw new \common_exception_MissingParameter('You must specify a route');
        }

        if (!is_array($route)) {
            $route = [$route];
        }

        return $route;
    }
1361681
private function getRoutes(): array
    {
        $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(realpath($this->packagePath('Routes'))));

        return array_keys(array_filter(iterator_to_array($iterator), function (SplFileInfo $file) {
            return $file->isFile() && substr($file->getFilename(), 0, strlen('routes.')) === (string)'routes.';
        }));
    }
837270
public function getUrl()
    {
        if ($this->route !== null) {
            return route($this->route[0], $this->route[1]);
        }

        return url($this->url);
    }
1079104
protected function getRoutes()
    {
        $c = self::ROUTE_PATTERN_CONTROLLER;
        $a = self::ROUTE_PATTERN_ACTION;
        $p = self::ROUTE_PATTERN_PARAMS;
        return array(
            "/" => self::MATCHES_NOTHING,
            "/$c" => self::MATCHES_CONTROLLER,
            "/$c/" => self::MATCHES_CONTROLLER,
            "/$c/$a" => self::MATCHES_CONTROLLER_AND_ACTION,
            "/$c/$a/" => self::MATCHES_CONTROLLER_AND_ACTION,
            "/$c/$a/$p" => self::MATCHES_CONTROLLER_ACTION_AND_PARAMS
        );
    }
1272731
public function routes()
    {
        Route::get('countries/{id}', function ($id) {
            $request = request();
            return CountryStore::country($id, $request);
        })->name('country');

        Route::get('countries', function () {
            $request = request();
            return CountryStore::countries($request);
        })->name('countries');

        Route::get('administrative_areas/{id}', function ($id) {
            $request = request();
            return CountryStore::administrativeArea($id, $request);
        })->name('administrative_area');

        Route::get('cities/{city_id}', function ($city_id) {
                $request = request();
                return CountryStore::city($city_id, $request);
        })->name('city');
    }
1290839
protected function retrieveRoutes()
    {
        $routes = null;

        // 1st of all we'll try to fetch routes from cache if enabled
        if (true === $this->isCacheEnabled()) {

            try {
                $routes = $this->restore($this->getUuid(), $this->getScope());

            } catch (Doozr_Cache_Service_Exception $e) {
                $routes = null;
            }
        }

        // If cache either disabled or routes could not be fetched -> retrieve them right now ...
        if (null === $routes) {
            $routesFromPresenters    = $this->getRoutesFromPresenters();
            $routesFromConfiguration = $this->getRoutesFromConfiguration(
                (array) $this->getRegistry()->getConfiguration()->kernel->transmission->routing->routes
            );

            $routes = array_merge_recursive($routesFromPresenters, $routesFromConfiguration);

            // Cache if enabled ...
            if (true === $this->getCacheEnabled()) {
                $this->store($routes);
            }
        }

        // Return routes either from cache or fresh retrieved ...
        return $routes;
    }
742358
public function getAuthRoutes()
    {
        $menu = $this->getMenu();
         
        if (!$menu) {
            return $this->extendPermissionRoutes();
        }
        
        return ArrayHelper::merge($this->extendPermissionRoutes(), $menu->getPermissionRoutes());
    }
672613
public function path()
    {
        //return $this->dispatch(new GetPostPathCommand($this));

        $data = [
            'year'  => $this->created_at->format('Y'),
            'month' => $this->created_at->format('m'),
            'day'   => $this->created_at->format('d'),
            'slug'  => $this->getSlug()
        ];

        return \URL::route('post.view', $data);
    }
1169739
public function getRoutes() : Array {

		$return = array();
		foreach($this->routes as $route) {
			array_push($return, [$route->getPath(), $route->getMethod()]);
		}
		return $return;

	}
145947
public function routes()
    {
        if (empty($this->routes))
        {
            $this->routes = $this->configureSlice()->asArray();
        }

        return $this->routes;
    }
1335213
protected function getRouter()
    {
        return isset($this->laravel->router) ? $this->laravel->router : $this->laravel;
    }