Skip to content

Commit

Permalink
chore(MOS-1414): Allow profiler service to be null.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPeters-NL committed Mar 14, 2024
1 parent b31b2e2 commit 2a9bf57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/PanelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PanelController
{
public function __construct(
private readonly Environment $twig,
private readonly Profiler $profiler,
private readonly Profiler | null $profiler,
private readonly PropelConfiguration $propelConfiguration,
private readonly ParameterBagInterface $parameterBag,
) {
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/propel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<service id="Propel\Bundle\PropelBundle\Controller\PanelController">
<tag name="controller.service_arguments" />
<argument type="service" id="twig" />
<argument type="service" id="profiler" />
<argument type="service" id="profiler" on-invalid="null" />
<argument type="service" id="propel.configuration" />
<argument type="service" id="parameter_bag" />
</service>
Expand Down

0 comments on commit 2a9bf57

Please sign in to comment.