Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove short factories/configurators examples#11589

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@nicolas-grekas
Copy link
Member

This PR reverts#7203, as short factories are more confusing than useful.
I'm proposing to deprecate them insymfony/symfony#31543
Note that some of this patch can (should) be adapted to 3.4 also.

symfony-splitter pushed a commit to symfony/dependency-injection that referenced this pull requestMay 22, 2019
This PR was merged into the 4.4-dev branch.Discussion----------[DI] deprecate short callables in yaml| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        |symfony/symfony-docs#11589This deprecates defining factories as `foo:method` instead of `['@foo', 'method']` in yaml.This is confusing syntax and misses the opportunity to raise an error when one does a typo and uses a single colon instead of two.This basically reverts #19190Commits-------f8a04fdda6 [DI] deprecate short callables in yaml
nicolas-grekas added a commit to symfony/symfony that referenced this pull requestMay 22, 2019
This PR was merged into the 4.4-dev branch.Discussion----------[DI] deprecate short callables in yaml| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        |symfony/symfony-docs#11589This deprecates defining factories as `foo:method` instead of `['@foo', 'method']` in yaml.This is confusing syntax and misses the opportunity to raise an error when one does a typo and uses a single colon instead of two.This basically reverts#19190Commits-------f8a04fd [DI] deprecate short callables in yaml
@javiereguiluzjaviereguiluz added this to the4.2 milestoneMay 29, 2019
@javiereguiluz
Copy link
Member

Thank you!

@javiereguiluzjaviereguiluz merged commite8cfa6e intosymfony:4.2May 29, 2019
javiereguiluz added a commit that referenced this pull requestMay 29, 2019
…rekas)This PR was merged into the 4.2 branch.Discussion----------Remove short factories/configurators examplesThis PR reverts#7203, as short factories are more confusing than useful.I'm proposing to deprecate them insymfony/symfony#31543Note that some of this patch can (should) be adapted to 3.4 also.Commits-------e8cfa6e Remove short factories/configurators examples
javiereguiluz added a commit that referenced this pull requestMay 31, 2019
This PR was merged into the 3.4 branch.Discussion----------Removed the deprecated factory YAML configThis backports#11589 to 3.4 so all versions use the same syntax.Commits-------519ccf3 Removed the deprecated factory YAML config
@nicolas-grekasnicolas-grekas deleted the no-short-factories branchJune 15, 2019 21:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp