@@ -154,10 +154,8 @@ public function getGenerator()
154
154
* RouteNotFoundException as documented below.
155
155
*
156
156
* The CMF routing system used to allow to pass route objects as $name to generate the route.
157
- * Since Symfony 5.0, the UrlGeneratorInterface declares $name as string. We widen the contract
158
- * for BC but deprecate passing non-strings.
159
- * Instead, Pass the RouteObjectInterface::OBJECT_BASED_ROUTE_NAME as route name and the object
160
- * in the parameters with key RouteObjectInterface::ROUTE_OBJECT.
157
+ * To generate the route from a string, pass the RouteObjectInterface::OBJECT_BASED_ROUTE_NAME
158
+ * as route name and the object in the parameters with key RouteObjectInterface::ROUTE_OBJECT.
161
159
*
162
160
* @param string $name The name of the route
163
161
*
@@ -180,20 +178,6 @@ public function generate($name, $parameters = [], $referenceType = UrlGeneratorI
180
178
return $ this ->getGenerator ()->generate ($ name , $ parameters , $ referenceType );
181
179
}
182
180
183
- /**
184
- * Delegate to our generator.
185
- *
186
- * {@inheritdoc}
187
- */
188
- public function supports ($ name )
189
- {
190
- if ($ this ->generator instanceof VersatileGeneratorInterface) {
191
- return $ this ->generator ->supports ($ name );
192
- }
193
-
194
- return is_string ($ name );
195
- }
196
-
197
181
/**
198
182
* Tries to match a URL path with a set of routes.
199
183
*
@@ -209,14 +193,10 @@ public function supports($name)
209
193
* @throws MethodNotAllowedException If the resource was found but the
210
194
* request method is not allowed
211
195
*
212
- * @deprecated Use matchRequest exclusively to avoid problems. This method will be removed in version 2.0
213
- *
214
196
* @api
215
197
*/
216
198
public function match ($ pathinfo ): array
217
199
{
218
- @trigger_error (__METHOD__ .'() is deprecated since version 1.3 and will be removed in 2.0. Use matchRequest() instead. ' , E_USER_DEPRECATED );
219
-
220
200
$ request = Request::create ($ pathinfo );
221
201
if ($ this ->eventDispatcher ) {
222
202
$ event = new RouterMatchEvent ();
0 commit comments