Skip to content

Commit 25865f7

Browse files
committed
add lazy resolving to php-di
1 parent 845281f commit 25865f7

File tree

4 files changed

+151
-4
lines changed

4 files changed

+151
-4
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"doctrine/orm": "^3.0",
4949
"doctrine/persistence": "^4.0",
5050
"filp/whoops": "^2.5",
51+
"friendsofphp/proxy-manager-lts": "^1.0",
5152
"graphp/graphviz": "^0.2.1",
5253
"hackzilla/password-generator": "^1.4",
5354
"hassankhan/config": "^3",

composer.lock

Lines changed: 148 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Module/Tick/Spacecraft/SpacecraftTickManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Stu\Module\Tick\Lock\LockTypeEnum;
1515
use Stu\Module\Tick\Spacecraft\ManagerComponent\ManagerComponentInterface;
1616

17-
final class SpacecraftTickManager implements SpacecraftTickManagerInterface
17+
class SpacecraftTickManager implements SpacecraftTickManagerInterface
1818
{
1919
/** @param array<ManagerComponentInterface> $components */
2020
public function __construct(

src/Module/Tick/services.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
]
9898
),
9999
SpacecraftTickManagerInterface::class => autowire(SpacecraftTickManager::class)
100+
->lazy()
100101
->constructorParameter(
101102
'components',
102103
[

0 commit comments

Comments
 (0)