mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Use ::class notation in config - fix #13
This commit is contained in:
parent
1f91c4eba7
commit
72f447f3dd
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ Read more about this on the [Filesystem Tenancy]({{ $page->link('filesystem-tena
|
|||
Tenant database managers handle the creation & deletion of tenant databases. This configuration array maps the database driver name to the `TenantDatabaseManager`, e.g.:
|
||||
|
||||
```php
|
||||
'mysql' => 'Stancl\Tenancy\TenantDatabaseManagers\MySQLDatabaseManager'
|
||||
'mysql' => Stancl\Tenancy\TenantDatabaseManagers\MySQLDatabaseManager::class
|
||||
```
|
||||
|
||||
### `database_manager_connections` {#database_maanger_connections}
|
||||
|
|
@ -85,7 +85,7 @@ These are the classes that do the magic. When tenancy is initialized, TenancyBoo
|
|||
This config is an array. The key is the alias and the value is the full class name.
|
||||
|
||||
```php
|
||||
'cache' => 'Stancl\Tenancy\TenancyBootstrappers\CacheTenancyBootstrapper',
|
||||
'cache' => Stancl\Tenancy\TenancyBootstrappers\CacheTenancyBootstrapper::class,
|
||||
```
|
||||
|
||||
The aliases are used by the [event system]({{ $page->link('event-system') }})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue