Skip to content

Commit 98f827b

Browse files
committed
minor #16664 [Debug] fix readme: DebugClassLoader moved to debug itself (Tobion)
This PR was merged into the 2.7 branch. Discussion ---------- [Debug] fix readme: DebugClassLoader moved to debug itself | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16663 (comment) | License | MIT | Doc PR | - Commits ------- 123a300 [Debug] fix readme: DebugClassLoader moved to debug itself
2 parents 99c05b3 + 123a300 commit 98f827b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/Debug/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Debug::enable();
1515
You can also use the tools individually:
1616

1717
```php
18+
use Symfony\Component\Debug\DebugClassLoader;
1819
use Symfony\Component\Debug\ErrorHandler;
1920
use Symfony\Component\Debug\ExceptionHandler;
2021

@@ -25,11 +26,9 @@ if ('cli' !== php_sapi_name()) {
2526
ini_set('display_errors', 1);
2627
}
2728
ErrorHandler::register();
29+
DebugClassLoader::enable();
2830
```
2931

30-
Note that the `Debug::enable()` call also registers the debug class loader
31-
from the Symfony ClassLoader component when available.
32-
3332
This component can optionally take advantage of the features of the HttpKernel
3433
and HttpFoundation components.
3534

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy