Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public static function createRegistry(TenantProvider $provider, TenantLocator $locator) { |
||
12 | // Populate the tenants from the provider |
||
13 | $registry = new TenantRegistry($provider->loadTenants()); |
||
14 | |||
15 | $registry->setCurrent( $registry->get($locator->getTenant()) ); |
||
16 | |||
17 | return $registry; |
||
18 | } |
||
19 | |||
21 |