Skip to content

[DI] Renamed some PHP-DSL functions #13676

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
May 22, 2020
Merged

Conversation

javiereguiluz
Copy link
Member

@javiereguiluz javiereguiluz commented May 18, 2020

Fixes #13673.

I propose to repeat the deprecated in 5.1 message everywhere because the ref() -> service() is an important change and we don't want anybody to miss it. Thanks.

@wouterj
Copy link
Member

wouterj commented May 18, 2020

I don't like the repeated deprecated directives, mostly because it clutters the docs even when someone is viewing Yaml example (which I think most people will still do in 5.1).

What about using PHP comments instead? // ! The service() function was introduced in Symfony 5.1 as a replacement of ref() ?

@javiereguiluz
Copy link
Member Author

@wouterj I like your suggestion! So I did those changes. Thanks.

@javiereguiluz javiereguiluz merged commit e077b5f into symfony:5.1 May 22, 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.

3 participants