Skip to content

Commit 315da6d

Browse files
committed
Minor fixes
1 parent ac4eaa4 commit 315da6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

profiler/matchers.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class in your controllers to manage the profiler programmatically::
2424
public function someMethod(?Profiler $profiler)
2525
{
2626
// $profiler won't be set if your environment doesn't have the profiler (like prod, by default)
27-
if ($profiler !== null) {
28-
// for this particular controller action, the profiler is disabled
27+
if (null !== $profiler) {
28+
// if it exists, disable the profiler for this particular controller action
2929
$profiler->disable();
3030
}
3131

@@ -40,13 +40,13 @@ create an alias pointing to the existing ``profiler`` service:
4040

4141
.. code-block:: yaml
4242
43-
# config/dev/services.yaml
43+
# config/services_dev.yaml
4444
services:
4545
Symfony\Component\HttpKernel\Profiler\Profiler: '@profiler'
4646
4747
.. code-block:: xml
4848
49-
<!-- config/dev/services.xml -->
49+
<!-- config/services_dev.xml -->
5050
<?xml version="1.0" encoding="UTF-8" ?>
5151
<container xmlns="http://symfony.com/schema/dic/services"
5252
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -60,7 +60,7 @@ create an alias pointing to the existing ``profiler`` service:
6060
6161
.. code-block:: php
6262
63-
// config/dev/services.php
63+
// config/services_dev.php
6464
use Symfony\Component\HttpKernel\Profiler\Profiler;
6565
6666
$container->setAlias(Profiler::class, 'profiler');

0 commit comments

Comments
 (0)