mirror of
https://github.com/symfony/debug.git
synced 2026-04-29 04:03:22 +02:00
Compare commits
8 Commits
v3.0.0-BETA1
...
v3.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 0623b00095 | |||
| d371ecb852 | |||
| e131370c3c | |||
| 88e7ac68fb | |||
| 294b4c4bc6 | |||
| e5d89401d5 | |||
| 39a5098e1a | |||
| 489c11d549 |
@@ -120,7 +120,7 @@ class DebugClassLoader
|
||||
try {
|
||||
if ($this->isFinder) {
|
||||
if ($file = $this->classLoader[0]->findFile($class)) {
|
||||
require $file;
|
||||
require_once $file;
|
||||
}
|
||||
} else {
|
||||
call_user_func($this->classLoader, $class);
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Symfony\Component\Debug;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Debug\Exception\FlattenException;
|
||||
use Symfony\Component\Debug\Exception\OutOfMemoryException;
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ Debug::enable();
|
||||
You can also use the tools individually:
|
||||
|
||||
```php
|
||||
use Symfony\Component\Debug\DebugClassLoader;
|
||||
use Symfony\Component\Debug\ErrorHandler;
|
||||
use Symfony\Component\Debug\ExceptionHandler;
|
||||
|
||||
@@ -25,13 +26,11 @@ if ('cli' !== php_sapi_name()) {
|
||||
ini_set('display_errors', 1);
|
||||
}
|
||||
ErrorHandler::register();
|
||||
DebugClassLoader::enable();
|
||||
```
|
||||
|
||||
Note that the `Debug::enable()` call also registers the debug class loader
|
||||
from the Symfony ClassLoader component when available.
|
||||
|
||||
This component can optionally take advantage of the features of the HttpKernel
|
||||
and HttpFoundation components.
|
||||
component.
|
||||
|
||||
Resources
|
||||
---------
|
||||
|
||||
Reference in New Issue
Block a user