Skip to content

Trim prefix during match - #127

Open
rustamwin wants to merge 1 commit into
masterfrom
fix-183
Open

Trim prefix during match#127
rustamwin wants to merge 1 commit into
masterfrom
fix-183

Conversation

@rustamwin

Copy link
Copy Markdown
Member
Q A
Is bugfix? ✔️/❌
New feature? ✔️/❌
Breaks BC? ✔️/❌
Fixed issues comma-separated list of tickets # fixed by the PR, if any

@what-the-diff

what-the-diff Bot commented Feb 27, 2023

Copy link
Copy Markdown
  • Added UrlGeneratorInterface to the constructor of UrlMatcher
  • Changed ConfigTest::getDiConfig() method, added merging configs with di-postfix.php file
  • Fixed tests for new functionality in url matcher: uri prefix and host matching (added $uriPrefix parameter)

Comment thread src/UrlMatcher.php
->getUri()
->getPath());
$path = urldecode($request->getUri()->getPath());
$uriPrefix = $this->urlGenerator->getUriPrefix();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we pass prefix and not the whole URL generator?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Without dependency? Nope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants