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

RouteCollector: Detect Duplicates Config #72

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Jul 18, 2024

Renames configuration option for detect duplicates from [RouteCollector::class]['detect_duplicates'] to ['router']['detect_duplicates']

Reference: #62

Q A
BC Break yes

@gsteel gsteel added this to the 4.0.0 milestone Jul 18, 2024
@gsteel gsteel marked this pull request as draft July 18, 2024 15:35
Renames configuration option for detect duplicates from `[RouteCollector::class]['detect_duplicates']` to `['router']['detect_duplicates']`

Signed-off-by: George Steel <[email protected]>
@gsteel gsteel force-pushed the v4/detect-duplicates-config branch from 88465d4 to 0e6b4d8 Compare July 18, 2024 15:38
@gsteel gsteel marked this pull request as ready for review July 18, 2024 15:38
@@ -21,6 +22,8 @@
*/
final class RouteCollectorFactory
{
private const DETECT_DUPLICATES_BY_DEFAULT = true;
Copy link
Member

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 :-)

Comment on lines -53 to +56
if (! isset($config[RouteCollector::class])) {
return true;
}
$options = $config['router'] ?? [];
Copy link
Member

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?

Copy link
Member Author

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 👍

Copy link
Member Author

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

@gsteel gsteel self-assigned this Jul 18, 2024
@gsteel gsteel merged commit ebb3696 into mezzio:4.0.x Jul 18, 2024
11 checks passed
@gsteel gsteel deleted the v4/detect-duplicates-config branch July 18, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants