1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-08-06 11:04:04 +00:00
tenancy/tests/Bootstrappers
lukinovec 9e6e0a988b Remove TenancyBroadcastManager, pass the channel auth closures directly in the Broadcaster extend() closure
Channel auth closures (registered using Broadcast::channel() e.g. in routes/channels.php) are only ever read from the default broadcaster -- both Broadcast::channel() and Broadcast::auth() go through the default broadcaster. TenancyBroadcastManager passed the closures to every broadcaster it resolved, which is pointless -- even in central context, Laravel doesn't do anything like that).

Instead, bind a fresh BroadcastManager and pass the central channel closures to its default broadcaster while extending Broadcaster. So now, tenant context behaves exactly like central context, just with broadcasters resolved using the tenant credentials.

Also update comments.
2026-07-12 11:49:34 +02:00
..
BootstrapperTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
BroadcastChannelPrefixBootstrapperTest.php Retrieve the re-registered channel closure to assert what tenant_channel() actually stored 2026-07-11 14:32:03 +02:00
BroadcastingConfigBootstrapperTest.php Remove TenancyBroadcastManager, pass the channel auth closures directly in the Broadcaster extend() closure 2026-07-12 11:49:34 +02:00
CacheTagsBootstrapperTest.php [4.x] Support database cache store tenancy (#1290) (resolve #852) 2025-08-08 00:54:01 +02:00
CacheTenancyBootstrapperTest.php Resolve test to-dos (#45) 2024-04-18 00:22:03 +02:00
DatabaseSessionBootstrapperTest.php [4.x] Laravel 12 support (#1321) 2025-02-25 16:26:18 +01:00
DatabaseTenancyBootstrapperTest.php Correct DatabaseTenancyBootstrapperTest (#1466) 2026-06-30 18:59:46 -07:00
FilesystemTenancyBootstrapperTest.php Change tenant storage listeners into jobs (#1446) 2026-04-22 16:45:54 +02:00
FortifyRouteBootstrapperTest.php [4.x] Resolve testing todos (#1361) 2025-08-03 23:21:03 +02:00
LogChannelBootstrapperTest.php Add LogChannelBootstrapper (#1381) 2026-07-08 01:42:05 -07:00
MailConfigBootstrapper.php rename mail bootstrapper test file 2024-09-27 21:03:39 +02:00
RootUrlBootstrapperTest.php [4.x] Improve RootUrl and UrlGenerator bootstrappers (#1294) 2025-01-16 10:30:06 +01:00
UrlGeneratorBootstrapperTest.php TenancyUrlGenerator: override toRoute(), refactor (#1439) 2026-06-06 14:52:37 -07:00