8000 [Fragment] Move configuration to PHP by idetox · Pull Request #37211 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Fragment] Move configuration to PHP #37211

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

Merged
merged 1 commit into from
Jun 11, 2020
Merged

[Fragment] Move configuration to PHP #37211

merged 1 commit into from
Jun 11, 2020

Conversation

idetox
Copy link
Contributor
@idetox idetox commented Jun 11, 2020
Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
Tickets Ref #37186
License MIT

@idetox idetox changed the title Issue 37186 move fragment config to php [Fragment] Move configuration to PHP Jun 11, 2020
Copy link
Member
@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

This looks correct to me!

I only have two minor questions:

(1) Should we standardize the order of PHP calls? In the original XML file, the tag was added before the args, so in PHP is the same:

->tag('kernel.event_subscriber')
->args([
    service('uri_signer'),
    param('fragment.path'),
])

But maybe we should put args first always?

->args([
    service('uri_signer'),
    param('fragment.path'),
])
->tag('kernel.event_subscriber')

(2) We should probably inline some args() calls because their service list is short enough:

// Before
->args([
    service('uri_signer'),
    param('fragment.path'),
])

// After
->args([service('uri_signer'), param('fragment.path')])

@Tobion
Copy link
Contributor
Tobion commented Jun 11, 2020

tags are added after the args (and calls) in the other PRs. So I think this should be changed for consistency here.

@idetox
Copy link
Contributor Author
idetox commented Jun 11, 2020

@Tobion , so order is

->args()
->call()
->tag()

Right ?

@idetox
Copy link
Contributor Author
idetox commented Jun 11, 2020

If someone can help, i don't know how to fix the test 😢

@yceruto
Copy link
Member
yceruto commented Jun 11, 2020

@idetox don't worry about it, it's a random failure. I've re-run the jobs to see if it happens now.

@fabpot
Copy link
Member
fabpot commented Jun 11, 2020

Can you squash your commits please?

@Tobion
Copy link
Contributor
Tobion commented Jun 11, 2020

Thank you @idetox.

@Tobion Tobion merged commit f6d1869 into symfony:master Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0