src/php/main/Eix/Core/Requests/Http.php
public static function getRoutes()
    {
        if (empty(self::$routes)) {
            // If no routes have been set, try the standard file.
            if (is_readable(self::ROUTES_FILE_LOCATION)) {
                // Decode the JSON routes file into an array.
                self::$routes = json_decode(
                    file_get_contents(self::ROUTES_FILE_LOCATION),
                    true
                );
            }
            // No valid routes have been found.
            if (empty(self::$routes)) {
                throw new Exception('No routes could be obtained. Please check the route configuration file.');
            }
        }

        return self::$routes;
    }
public static function getRoutes()
    {
        if (empty(self::$routes)) {
            // If no routes have been set, try the standard file.
            if (is_readable(self::ROUTES_FILE_LOCATION)) {
                // Decode the JSON routes file into an array.
                self::$routes = json_decode(
                    file_get_contents(self::ROUTES_FILE_LOCATION),
                    true
                );
            }
            // No valid routes have been found.
            if (empty(self::$routes)) {
                throw new Exception('No routes could be obtained. Please check the route configuration file.');
            }
        }

        return self::$routes;
    }
public static function getRoutes ( ) { if ( empty ( self :: $ routes ) ) { // If no routes have been set, try the standard file. if ( is_readable ( self :: ROUTES_FILE_LOCATION ) ) { // Decode the JSON routes file into an array. self :: $ routes = json_decode ( file_get_contents ( self :: ROUTES_FILE_LOCATION ) , true ) ; } // No valid routes have been found. if ( empty ( self :: $ routes ) ) { throw new Exception ( 'No routes could be obtained. Please check the route configuration file.' ) ; } } return self :: $ routes ; }
Returns the URL-Responder map.

@throws Exception if no usable routes source is available.
Returns the URL - Responder map .