Issue #3350922 by Ranjit1032002, Akram Khan, quietone, geek-merlin, larowlan: Deprecate unused MatchingRouteNotFoundException
parent
1c0857c96c
commit
96b418f515
|
@ -6,7 +6,11 @@ use Symfony\Component\Routing\Exception\ResourceNotFoundException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No matching route was found.
|
* No matching route was found.
|
||||||
|
*
|
||||||
|
* @deprecated in drupal:11.1.0 and is removed from drupal:12.0.0. There is no
|
||||||
|
* replacement.
|
||||||
|
*
|
||||||
|
* @see https://www.drupal.org/node/3462776
|
||||||
*/
|
*/
|
||||||
class MatchingRouteNotFoundException extends ResourceNotFoundException {
|
class MatchingRouteNotFoundException extends ResourceNotFoundException {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -482,8 +482,12 @@ class Url implements TrustedCallbackInterface {
|
||||||
* would get an access denied running the same request via the normal page
|
* would get an access denied running the same request via the normal page
|
||||||
* flow.
|
* flow.
|
||||||
*
|
*
|
||||||
* @throws \Drupal\Core\Routing\MatchingRouteNotFoundException
|
* @throws Symfony\Component\Routing\Exception\NoConfigurationException
|
||||||
* Thrown when the request cannot be matched.
|
* If no routing configuration could be found.
|
||||||
|
* @throws Symfony\Component\Routing\Exception\ResourceNotFoundException
|
||||||
|
* If no matching resource could be found.
|
||||||
|
* @throws Symfony\Component\Routing\Exception\MethodNotAllowedException
|
||||||
|
* If a matching resource was found but the request method is not allowed.
|
||||||
*/
|
*/
|
||||||
public static function createFromRequest(Request $request) {
|
public static function createFromRequest(Request $request) {
|
||||||
// We use the router without access checks because URL objects might be
|
// We use the router without access checks because URL objects might be
|
||||||
|
|
Loading…
Reference in New Issue