Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
24 | public static function getInstance(string $appName, string $context, string $appDir, CacheInterface|null $cache = null): InjectorInterface |
||
25 | { |
||
26 | $meta = new Meta($appName, $context, $appDir); |
||
27 | $cacheNamespace = str_replace('\\', '_', $appName) . $context; |
||
28 | $cache ??= (new LocalCacheProvider($meta->tmpDir . '/injector', $cacheNamespace))->get(); |
||
29 | |||
30 | return PackageInjector::getInstance($meta, $context, $cache); |
||
31 | } |
||
38 |