mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:54:03 +00:00
Fix typos
This commit is contained in:
parent
5010e798b3
commit
ce30f3c189
4 changed files with 5 additions and 5 deletions
|
|
@ -50,7 +50,7 @@ class BroadcastChannelPrefixBootstrapper implements TenancyBootstrapper
|
||||||
|
|
||||||
$broadcasterOverride($this->broadcastManager);
|
$broadcasterOverride($this->broadcastManager);
|
||||||
|
|
||||||
// Get the overriden broadcaster
|
// Get the overridden broadcaster
|
||||||
$newBroadcaster = $this->broadcastManager->driver($broadcaster);
|
$newBroadcaster = $this->broadcastManager->driver($broadcaster);
|
||||||
|
|
||||||
// Register the original broadcaster's channels in the new broadcaster
|
// Register the original broadcaster's channels in the new broadcaster
|
||||||
|
|
@ -64,7 +64,7 @@ class BroadcastChannelPrefixBootstrapper implements TenancyBootstrapper
|
||||||
{
|
{
|
||||||
// Revert to the original broadcasters
|
// Revert to the original broadcasters
|
||||||
foreach ($this->originalBroadcasters as $name => $broadcaster) {
|
foreach ($this->originalBroadcasters as $name => $broadcaster) {
|
||||||
// Delete the cached (overriden) broadcaster
|
// Delete the cached (overridden) broadcaster
|
||||||
$this->broadcastManager->purge($name);
|
$this->broadcastManager->purge($name);
|
||||||
|
|
||||||
// Make manager return the original broadcaster instance
|
// Make manager return the original broadcaster instance
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ trait DealsWithRouteContexts
|
||||||
* the context is determined by the `tenancy.default_route_mode` config.
|
* the context is determined by the `tenancy.default_route_mode` config.
|
||||||
*
|
*
|
||||||
* If the default route mode is tenant, all unflagged routes will be tenant by default,
|
* If the default route mode is tenant, all unflagged routes will be tenant by default,
|
||||||
* but they will still have to have an identification midddleware (route-level
|
* but they will still have to have an identification middleware (route-level
|
||||||
* or global) to be accessible. Same applies for universal default route mode.
|
* or global) to be accessible. Same applies for universal default route mode.
|
||||||
*/
|
*/
|
||||||
public static function getRouteMode(Route $route): RouteMode
|
public static function getRouteMode(Route $route): RouteMode
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,6 @@ class RouteIsMissingTenantParameterException extends Exception
|
||||||
{
|
{
|
||||||
$parameter = PathTenantResolver::tenantParameterName();
|
$parameter = PathTenantResolver::tenantParameterName();
|
||||||
|
|
||||||
parent::__construct("The route's first argument is not the tenant id (configured paramter name: $parameter).");
|
parent::__construct("The route's first argument is not the tenant id (configured parameter name: $parameter).");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
return $tenancy;
|
return $tenancy;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Make it possible to inject the current tenant by typehinting the Tenant contract.
|
// Make it possible to inject the current tenant by type hinting the Tenant contract.
|
||||||
$this->app->bind(Tenant::class, function ($app) {
|
$this->app->bind(Tenant::class, function ($app) {
|
||||||
return $app[Tenancy::class]->tenant;
|
return $app[Tenancy::class]->tenant;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue