-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
RouteCollector: Detect Duplicates Config #72
Conversation
Renames configuration option for detect duplicates from `[RouteCollector::class]['detect_duplicates']` to `['router']['detect_duplicates']` Signed-off-by: George Steel <[email protected]>
88465d4
to
0e6b4d8
Compare
@@ -21,6 +22,8 @@ | |||
*/ | |||
final class RouteCollectorFactory | |||
{ | |||
private const DETECT_DUPLICATES_BY_DEFAULT = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to squint a few times, because adding a constant for this felt a bit excessive, but then it makes sense :-)
if (! isset($config[RouteCollector::class])) { | ||
return true; | ||
} | ||
$options = $config['router'] ?? []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to adjust any docs for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes #62 is tracking this - but I think all the docs are in mezzio
- I'll write some decent release notes on the 4.0 milestone here so that we can refer to them when updating docs for the next mezzio major 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also added mezzio/mezzio#183 to mezzio
Renames configuration option for detect duplicates from
[RouteCollector::class]['detect_duplicates']
to['router']['detect_duplicates']
Reference: #62