Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 123a300

Browse filesBrowse files
committed
[Debug] fix readme: DebugClassLoader moved to debug itself
1 parent 26ef430 commit 123a300
Copy full SHA for 123a300

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎src/Symfony/Component/Debug/README.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/README.md
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.