Primo Committ
This commit is contained in:
37
vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php
vendored
Normal file
37
vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Routing;
|
||||
|
||||
class RouteFileRegistrar
|
||||
{
|
||||
/**
|
||||
* The router instance.
|
||||
*
|
||||
* @var \Illuminate\Routing\Router
|
||||
*/
|
||||
protected $router;
|
||||
|
||||
/**
|
||||
* Create a new route file registrar instance.
|
||||
*
|
||||
* @param \Illuminate\Routing\Router $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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user