src/Routing/RouteLoader.php
/**
	 * Loads the specified route file.
	 *
	 * @param string $filePath
	 */
Loads the specified route file.
@param string $filePath
Loads the specified route file . @param string $filePath
public static function loadRouteFile($filePath, $reset = false) {
		$previous = static::$currentDirectory;
		$routeDirectory = dirname($filePath);
		static::$currentDirectory = $routeDirectory;
		if (!file_exists($filePath)) {
			throw new HorizonException(0x0005, $filePath);
		}
		if ($reset) static::reset();
		require $filePath;
		static::$currentDirectory = $previous;
	}
public static function loadRouteFile ( $ filePath , $ reset = false ) { $ previous = static :: $ currentDirectory ; $ routeDirectory = dirname ( $ filePath ) ; static :: $ currentDirectory = $ routeDirectory ; if ( ! file_exists ( $ filePath ) ) { throw new HorizonException ( 0x0005 , $ filePath ) ; } if ( $ reset ) static :: reset ( ) ; require $ filePath ; static :: $ currentDirectory = $ previous ; }
Loads the specified route file.
Loads the specified route file .
// Store the previous directory // Get the directory // Check that the file exists // Reset if requested // Execute the file // Reset the directory