You are here

private static function PhpFileLoader::includeFile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Loader/PhpFileLoader.php \Symfony\Component\Routing\Loader\PhpFileLoader::includeFile()

Safe include. Used for scope isolation.

Parameters

string $file File to include:

PhpFileLoader $loader the loader variable is exposed to the included file below:

Return value

RouteCollection

1 call to PhpFileLoader::includeFile()
PhpFileLoader::load in vendor/symfony/routing/Loader/PhpFileLoader.php
Loads a PHP file.

File

vendor/symfony/routing/Loader/PhpFileLoader.php, line 62

Class

PhpFileLoader
PhpFileLoader loads routes from a PHP file.

Namespace

Symfony\Component\Routing\Loader

Code

private static function includeFile($file, PhpFileLoader $loader) {
  return include $file;
}