Skip to content

Commit 72c34ba

Browse files
authored
Merge pull request #374 from bearsunday/hotfix
Fix cache issue regarding symfony/cache
2 parents f1d40cf + f260d1e commit 72c34ba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Injector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
use Ray\Compiler\ScriptInjector;
1212
use Ray\Di\Injector as RayInjector;
1313
use Ray\Di\InjectorInterface;
14+
use Ray\PsrCacheModule\FilesystemAdapter;
1415
use Symfony\Component\Cache\Adapter\ApcuAdapter;
1516
use Symfony\Component\Cache\Adapter\ChainAdapter;
16-
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
1717
use Symfony\Contracts\Cache\CacheInterface;
1818

1919
use function assert;

tests/script/boot.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
declare(strict_types=1);
44

5+
use BEAR\AppMeta\Meta;
56
use BEAR\Package\Injector;
67
use BEAR\Resource\ResourceObject;
78
use BEAR\Sunday\Extension\Application\AppInterface;
@@ -12,6 +13,9 @@
1213
$opt = getopt('c:n:');
1314
$context = isset($opt['c']) && is_string($opt['c']) ? $opt['c'] : 'prod-app';
1415
$appDir = dirname(__DIR__) . '/Fake/fake-app';
16+
$appName = 'FakeVendor\HelloWorld';
17+
$meta = new Meta($appName, $context);
18+
@mkdir($meta->tmpDir . '/di');
1519
$injector = Injector::getInstance('FakeVendor\HelloWorld', $context, $appDir);
1620
$app = $injector->getInstance(AppInterface::class);
1721
assert($app instanceof AppInterface);

0 commit comments

Comments
 (0)