Skip to content

Commit cfb1761

Browse files
committed
Trigger deprecation notice
1 parent 8c41a43 commit cfb1761

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

DynamicRouter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,13 @@ public function supports($name)
210210
* request method is not allowed
211211
*
212212
* @deprecated Use matchRequest exclusively to avoid problems. This method will be removed in version 2.0
213+
*
213214
* @api
214215
*/
215216
public function match($pathinfo)
216217
{
218+
@trigger_error(__CLASS__.'::'.__METHOD__.'() is deprecated since version 1.3 and will be removed in 2.0. Use matchRequest() instead.', E_USER_DEPRECATED);
219+
217220
$request = Request::create($pathinfo);
218221
if ($this->eventDispatcher) {
219222
$event = new RouterMatchEvent();

0 commit comments

Comments
 (0)