File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11
11
use Ray \Compiler \ScriptInjector ;
12
12
use Ray \Di \Injector as RayInjector ;
13
13
use Ray \Di \InjectorInterface ;
14
+ use Ray \PsrCacheModule \FilesystemAdapter ;
14
15
use Symfony \Component \Cache \Adapter \ApcuAdapter ;
15
16
use Symfony \Component \Cache \Adapter \ChainAdapter ;
16
- use Symfony \Component \Cache \Adapter \FilesystemAdapter ;
17
17
use Symfony \Contracts \Cache \CacheInterface ;
18
18
19
19
use function assert ;
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
+ use BEAR \AppMeta \Meta ;
5
6
use BEAR \Package \Injector ;
6
7
use BEAR \Resource \ResourceObject ;
7
8
use BEAR \Sunday \Extension \Application \AppInterface ;
12
13
$ opt = getopt ('c:n: ' );
13
14
$ context = isset ($ opt ['c ' ]) && is_string ($ opt ['c ' ]) ? $ opt ['c ' ] : 'prod-app ' ;
14
15
$ appDir = dirname (__DIR__ ) . '/Fake/fake-app ' ;
16
+ $ appName = 'FakeVendor\HelloWorld ' ;
17
+ $ meta = new Meta ($ appName , $ context );
18
+ @mkdir ($ meta ->tmpDir . '/di ' );
15
19
$ injector = Injector::getInstance ('FakeVendor\HelloWorld ' , $ context , $ appDir );
16
20
$ app = $ injector ->getInstance (AppInterface::class);
17
21
assert ($ app instanceof AppInterface);
You can’t perform that action at this time.
0 commit comments