1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 06:44:02 +00:00
tenancy/src/Middleware
Márk Magyar 79f740d057
[4.x] General code cleanup (#1278)
* Declare sensitive parameters as sensitive

... just so that they don't show up in logs

* Remove unnecessary null-coalescing

* Simplify return

* Merge isset() calls

* Inline return

* Use nullsafe operator

* Simplify if-else branches

* Use direct empty string comparison instead of strlen()

* Add missing type

* Change interface as events expect a TenantWithDatabase not just a Tenant

* Narrow typehint

* Remove redundant type casts

* Fix style with php-cs-fixer

* Fix typos

* Revert unwanted if-else simplification

* fix phpstan errors

* narrow type

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-12-31 00:35:46 +01:00
..
CheckTenantForMaintenanceMode.php [4.x] Add command to bring the tenants up and down from maintenance and remove deprecated exception (#761) 2022-09-29 15:59:14 +02:00
IdentificationMiddleware.php phpstan improvements 2022-09-29 15:07:16 +02:00
InitializeTenancyByDomain.php Fix code style (php-cs-fixer) 2024-11-09 19:54:56 +00:00
InitializeTenancyByDomainOrSubdomain.php Fix code style (php-cs-fixer) 2024-11-09 19:54:56 +00:00
InitializeTenancyByOriginHeader.php Identify tenants by the "Origin" header (#21) 2024-01-08 00:29:01 +01:00
InitializeTenancyByPath.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
InitializeTenancyByRequestData.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
InitializeTenancyBySubdomain.php Fix origin id w/ empty header & using full-hostname subdomain records 2024-11-09 20:48:45 +01:00
PreventAccessFromUnwantedDomains.php Refactor early identification (#47) 2024-04-22 11:30:58 +02:00
ScopeSessions.php Cache prefixing logic rewrite, session scoping improvements, tests refactor (#43) 2024-04-09 20:40:27 +02:00