From d9b63cdf5949bc049d646211a71933c1ca6879a6 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 19 Dec 2023 17:44:06 +0100 Subject: [PATCH] Stop setting `$prefixRouteNames` to true in path ID MW (#22) * Stop setting $prefixRouteNames in path ID MW * Fix code style (php-cs-fixer) --------- Co-authored-by: PHP CS Fixer --- src/Middleware/InitializeTenancyByPath.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Middleware/InitializeTenancyByPath.php b/src/Middleware/InitializeTenancyByPath.php index 3a149322..6f8ca405 100644 --- a/src/Middleware/InitializeTenancyByPath.php +++ b/src/Middleware/InitializeTenancyByPath.php @@ -10,7 +10,6 @@ use Stancl\Tenancy\Concerns\UsableWithEarlyIdentification; use Stancl\Tenancy\Concerns\UsableWithUniversalRoutes; use Stancl\Tenancy\Enums\RouteMode; use Stancl\Tenancy\Exceptions\RouteIsMissingTenantParameterException; -use Stancl\Tenancy\Overrides\TenancyUrlGenerator; use Stancl\Tenancy\Resolvers\PathTenantResolver; use Stancl\Tenancy\Tenancy; @@ -38,9 +37,6 @@ class InitializeTenancyByPath extends IdentificationMiddleware implements Usable return $next($request); } - // Used with *route-level* identification, takes precedence over what may have been configured for global stack middleware - TenancyUrlGenerator::$prefixRouteNames = true; - // Only initialize tenancy if the route has the tenant parameter. // We don't want to initialize tenancy if the tenant is // simply injected into some route controller action.