1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:14:02 +00:00
tenancy/src
lukinovec aa1437fb5e
Resolve misc to-dos (#26)
* Resolve delete tenant storage todo

* Delete outdated todo (resolved in #25)

* Delete resource syncing todo (resolved in #11)

* Make it clear that getArgsForTenant() is used during cache invalidation

* Delete redundant __call() and __callStatic() annotations

* Fix code style (php-cs-fixer)

* Revert %tenant_id% to-do removal

* Test all cached resolvers instead of just the domain one

* Make docblock more concise, delete renaming to-do (the name seems fine)

* Fix method in tests

* If route is the only resolver arg, use the tenant as the cache key instead of encoded route instance

* Resolve to-do

* make docblock more clear

* Add comments to getResolverArgument()

* Rename $id to $tenantKey

* Fix code style (php-cs-fixer)

* Add regression test for forgetting tenant parameters of cached tenants

* Forget route parameter when tenant gets resolved

* Add parameter type

* Simplify getCacheKey()

* Resolvers wip

* Resolvers wip

* Fix code style (php-cs-fixer)

* Bring back the route instance check to getCacheKey, fix test

* add todo

* add assertion

---------

Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-02-10 18:38:05 +01:00
..
Actions Make clone action prefix already prefixed routes correctly (#28) 2024-02-10 18:19:20 +01:00
Bootstrappers Pass BroadcastManager to override closures (#23) 2023-12-20 12:23:37 +01:00
Commands Single-domain tenants (#16) 2023-11-08 11:38:26 +01:00
Concerns Give universal flag highest priority (#27) 2024-01-25 15:27:17 +01:00
Contracts Resolve misc to-dos (#26) 2024-02-10 18:38:05 +01:00
Controllers Stop bypassing tenancy initializition when domain is central in domain ID MW (#24) 2024-01-03 23:35:49 +01:00
Database Resolve misc to-dos (#26) 2024-02-10 18:38:05 +01:00
Enums Improve file structure (#5) 2023-08-03 17:51:53 +02:00
Events [4.x] Configure attributes for synced resources when creating models (#915) 2022-11-03 17:51:29 +01:00
Exceptions Central routes without Route::domain(), configurable tenant/central routes by default for domain/subdomain identification, allow accessing central routes in early identification for path & request data middleware (#3) 2023-08-03 00:23:26 +02:00
Facades Extend GlobalCache facade from the original facade (#495) 2020-09-18 23:18:21 +02:00
Features Improve file structure (#5) 2023-08-03 17:51:53 +02:00
Jobs Central routes without Route::domain(), configurable tenant/central routes by default for domain/subdomain identification, allow accessing central routes in early identification for path & request data middleware (#3) 2023-08-03 00:23:26 +02:00
Listeners Resolve misc to-dos (#26) 2024-02-10 18:38:05 +01:00
Middleware Give universal flag highest priority (#27) 2024-01-25 15:27:17 +01:00
Overrides Update path identification and Fortify integration-related logic (#13) 2023-11-26 21:08:41 +01:00
Resolvers Resolve misc to-dos (#26) 2024-02-10 18:38:05 +01:00
helpers.php Stop bypassing tenancy initializition when domain is central in domain ID MW (#24) 2024-01-03 23:35:49 +01:00
PathIdentificationManager.php Central routes without Route::domain(), configurable tenant/central routes by default for domain/subdomain identification, allow accessing central routes in early identification for path & request data middleware (#3) 2023-08-03 00:23:26 +02:00
Tenancy.php Update path identification and Fortify integration-related logic (#13) 2023-11-26 21:08:41 +01:00
TenancyServiceProvider.php Give universal flag highest priority (#27) 2024-01-25 15:27:17 +01:00
UUIDGenerator.php phpstan, global_cache, resolver improvements, InitializationHelpers trait 2022-09-29 02:47:13 +02:00