|
@@ -31,10 +31,10 @@ |
|
|
block discarded – undo |
|
31
|
31
|
|
|
32
|
32
|
public function newApp(AbstractAppMeta $appMeta, string $contexts, Cache $cache = null, string $cacheKey = null) : AbstractApp |
|
33
|
33
|
{ |
|
34
|
|
- $cacheNs = is_string($cacheKey) ? $cacheKey : (string) filemtime($appMeta->appDir . '/src'); |
|
|
34
|
+ $cacheNs = is_string($cacheKey) ? $cacheKey : (string) filemtime($appMeta->appDir.'/src'); |
|
35
|
35
|
$injector = new AppInjector($appMeta->name, $contexts, $appMeta, $cacheNs); |
|
36
|
36
|
$cache = $cache instanceof Cache ? $cache : $injector->getCachedInstance(Cache::class); |
|
37
|
|
- $appId = $appMeta->name . $contexts . $cacheNs; |
|
|
37
|
+ $appId = $appMeta->name.$contexts.$cacheNs; |
|
38
|
38
|
$app = $cache->fetch($appId); |
|
39
|
39
|
if ($app instanceof AbstractApp) { |
|
40
|
40
|
return $app; |
Please login to merge, or discard this patch.