Skip to content

Commit

Permalink
Make mocked services non-lazy (#25)
Browse files Browse the repository at this point in the history
This will avoid problems like
> A method by name setProxyInitializer already exists in this class.
  • Loading branch information
Nyholm authored Apr 3, 2022
1 parent 4366f0e commit 707be07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function process(ContainerBuilder $container)
$proxy = $factory->createProxy($definition->getClass(), $initializer);
$definition->setClass($proxyClass = get_class($proxy));
$definition->setPublic(true);
$definition->setLazy(true);
$definition->setLazy(false);

if (null !== $definition->getFactory()) {
$factoryMethod = $definition->getFactory();
Expand Down

0 comments on commit 707be07

Please sign in to comment.