Use ::class notation in config - fix #13

This commit is contained in:
Samuel Štancl 2019-10-04 21:27:22 +02:00
parent 1f91c4eba7
commit 72f447f3dd

View file

@ -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.: Tenant database managers handle the creation & deletion of tenant databases. This configuration array maps the database driver name to the `TenantDatabaseManager`, e.g.:
```php ```php
'mysql' => 'Stancl\Tenancy\TenantDatabaseManagers\MySQLDatabaseManager' 'mysql' => Stancl\Tenancy\TenantDatabaseManagers\MySQLDatabaseManager::class
``` ```
### `database_manager_connections` {#database_maanger_connections} ### `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. This config is an array. The key is the alias and the value is the full class name.
```php ```php
'cache' => 'Stancl\Tenancy\TenancyBootstrappers\CacheTenancyBootstrapper', 'cache' => Stancl\Tenancy\TenancyBootstrappers\CacheTenancyBootstrapper::class,
``` ```
The aliases are used by the [event system]({{ $page->link('event-system') }}) The aliases are used by the [event system]({{ $page->link('event-system') }})