Initial PHP rebuild of the app
This commit is contained in:
690 files changed
+33944
-12046
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Services\Tenant\TenantContext;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->scoped(TenantContext::class, fn (): TenantContext => new TenantContext());
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
// Tenant-aware policies and observers are registered here as the
|
||||
// feature areas move from the legacy application.
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user