Файл: vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php
Строк: 22
<?php
namespace IlluminateRouting;
class RouteFileRegistrar
{
/**
* The router instance.
*
* @var IlluminateRoutingRouter
*/
protected $router;
/**
* Create a new route file registrar instance.
*
* @param IlluminateRoutingRouter $router
* @return void
*/
public function __construct(Router $router)
{
$this->router = $router;
}
/**
* Require the given routes file.
*
* @param string $routes
* @return void
*/
public function register($routes)
{
$router = $this->router;
require $routes;
}
}