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

Make config overrides work with Mojolicious::Lite #1734

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

kraih
Copy link
Member

@kraih kraih commented Mar 10, 2021

This is a solution for #1406.

@kraih kraih requested a review from a team March 10, 2021 22:14
lib/Mojolicious.pm Outdated Show resolved Hide resolved
Copy link
Member

@christopherraa christopherraa left a comment

Choose a reason for hiding this comment

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

The overall change does look good I think. It seems like a pretty minimal change and solves the problem at hand in a good way. Consider this an approval, but I am holding off on actually approving until the thread asking for a better solution has been resolved (so as to avoid auto-merging prematurely). If you feel that the solution is OK as it is then I'll add my approval.

lib/Mojolicious.pm Outdated Show resolved Hide resolved
@kraih
Copy link
Member Author

kraih commented Mar 11, 2021

To prevent auto-merging a PR can also just be labeled work in progress.

@kraih
Copy link
Member Author

kraih commented Mar 11, 2021

My main issue was bad encapsulation with the global variable, Mojo::Server had to require Mojolicious to be able to set @Mojolicious::ARGS_OVERRIDE. Now i've reversed that and the global variable is @Mojo::Server::ARGS_OVERRIDE. That is at least a little better.

Copy link
Member

@christopherraa christopherraa left a comment

Choose a reason for hiding this comment

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

I am now 👍 to this. Agree that it much better with the args-move.

Copy link
Member

@marcusramberg marcusramberg left a comment

Choose a reason for hiding this comment

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

Looks pretty clean now, and useful feature

@mergify mergify bot merged commit f9775b0 into master Mar 11, 2021
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.

4 participants