You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE-3.0.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1259,3 +1259,18 @@ UPGRADE FROM 2.x to 3.0
1259
1259
### HttpFoundation
1260
1260
1261
1261
* `Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface` no longer implements the `IteratorAggregate` interface. Use the `all()` method instead of iterating over the flash bag.
1262
+
1263
+
### Debug
1264
+
1265
+
* `DebugClassLoader::__construct()` now accepts only a `callable` argument.
1266
+
* `DebugClassLoader::getClassLoader()` now always returns `callable`.
1267
+
* `DebugClassLoader::findFile()` has been removed.
1268
+
* `ErrorHandler::TYPE_DEPRECATION` has been removed.
1269
+
* `ErrorHandler::setLevel()` has been removed, use throwAt() instead.
1270
+
* `ErrorHandler::setDisplayErrors()` has been removed, use throwAt() instead.
1271
+
* `ErrorHandler::setLogger()` has been removed, use setLoggers() or setDefaultLogger() instead.
1272
+
* `ErrorHandler::handle()` has been removed, use handleError() instead.
1273
+
* `ErrorHandler::handleFatal()` has been removed, use handleFatalError() instead.
1274
+
* `ExceptionHandler::createException()` has been removed.
1275
+
* `ExceptionHandler::utf8Htmlize()` has been removed.
if (class_exists('Symfony\Component\HttpFoundation\Response', false)
177
-
&& __CLASS__ !== get_class($this)
178
-
&& ($reflector = new \ReflectionMethod($this, 'createResponse'))
179
-
&& __CLASS__ !== $reflector->class
180
-
) {
181
-
$response = $this->createResponse($exception);
182
-
$response->sendHeaders();
183
-
$response->sendContent();
184
-
@trigger_error(sprintf("The %s::createResponse method is deprecated since 2.8 and won't be called anymore when handling an exception in 3.0.", $reflector->class), E_USER_DEPRECATED);
185
-
186
-
return;
187
-
}
188
-
189
-
$this->sendPhpResponse($exception);
190
-
}
191
-
192
164
/**
193
165
* Sends the error associated with the given Exception as a plain PHP response.
194
166
*
@@ -214,26 +186,6 @@ public function sendPhpResponse($exception)
0 commit comments