Skip to content

Commit

Permalink
Make sure mocked service is not lazy (#14)
Browse files Browse the repository at this point in the history
This will fix #13
  • Loading branch information
Nyholm authored Jan 16, 2021
1 parent cdac49a commit 8481d08
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function process(ContainerBuilder $container)
$proxy = $factory->createProxy($definition->getClass(), $initializer);
$definition->setClass(get_class($proxy));
$definition->setPublic(true);
$definition->setLazy(true);
}
}
}

0 comments on commit 8481d08

Please sign in to comment.