commit13
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Tempo\Purchasing\Delivery;
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
final class Composition
|
||||
{
|
||||
public static function routes(string $bundle): void
|
||||
{
|
||||
$previous = [];
|
||||
foreach (Route::getRoutes() as $route) {
|
||||
$previous[spl_object_id($route)] = true;
|
||||
}
|
||||
require $bundle.'/integrations/sgf/internal-requisitions/routes.php';
|
||||
require $bundle.'/integrations/sgf/access/routes.php';
|
||||
foreach (Route::getRoutes() as $route) {
|
||||
if (! isset($previous[spl_object_id($route)])) {
|
||||
$route->middleware(RuntimeContext::class);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user