src/Provider/FileProvider.php
/**
     * Parses the routes from the route definition array.
     * @param array[] $definitions List of simple route definitions
     * @return array[] Parsed routes
     */
Parses the routes from the route definition array.
@param array[] $definitions List of simple route definitions
@return array[] Parsed routes
Parses the routes from the route definition array . @param array [] $definitions List of simple route definitions @return array [] Parsed routes
private function parseRoutes(array $definitions)
    {
        $routes = [];
        foreach ($definitions as list($methods, $path, $handler)) {
            $route = $this->parsePath($path);
            $route['methods'] = $this->canonizeMethods($methods);
            $route['handler'] = (string) $handler;
            $routes[rawurldecode($route['path'])][] = $route;
        }
        return $routes;
    }
private function parseRoutes ( array $ definitions ) { $ routes = [ ] ; foreach ( $ definitions as list ( $ methods , $ path , $ handler ) ) { $ route = $ this -> parsePath ( $ path ) ; $ route [ 'methods' ] = $ this -> canonizeMethods ( $ methods ) ; $ route [ 'handler' ] = ( string ) $ handler ; $ routes [ rawurldecode ( $ route [ 'path' ] ) ] [ ] = $ route ; } return $ routes ; }
Parses the routes from the route definition array.
Parses the routes from the route definition array .