Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add RequestMatcherInterface to RouterDecorator #21

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
12 changes: 11 additions & 1 deletion src/Decorator/RouterDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Routing\Matcher\RequestMatcherInterface;

class RouterDecorator implements RouterInterface, WarmableInterface
class RouterDecorator implements RouterInterface, WarmableInterface, RequestMatcherInterface
{
use DecoratorTrait;

Expand Down Expand Up @@ -102,4 +103,13 @@ public function warmUp($cacheDir)
$this->getRouter()->warmUp($cacheDir);
}
}

/**
* @codeCoverageIgnore
*/
public function matchRequest($pathinfo)
{
return $this->getRouter()->matchRequest($pathinfo);
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this extra line

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

}