Skip to content

Commit fe31a27

Browse files
author
Dome
committed
[TASK] Made app container shareable
1 parent 5d35caf commit fe31a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Provider/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function register()
3232
{
3333
$container = $this->getContainer();
3434

35-
$container->add(App::class, function () use ($container) {
35+
$container->share(App::class, function () use ($container) {
3636
AppFactory::setContainer($container);
3737

3838
return AppFactory::create();

0 commit comments

Comments
 (0)