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

[DependencyInjection] Fix named args support in ChildDefinition#22981

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

Closed
dunglas wants to merge2 commits intosymfony:3.3fromdunglas:named_args_review

Conversation

@dunglas
Copy link
Member

QA
Branch?3.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

Following@Tobion's review of#21383.

@xabbuh
Copy link
Member

I would also update the exception message. "$index must be an integer." is not really right anymore.

@dunglas
Copy link
MemberAuthor

@xabbuh updated,ChildDefinition now delegates the common behavior to the parent class.

@xabbuh
Copy link
Member

@dunglas
Copy link
MemberAuthor

@xabbuh updated

@Tobion
Copy link
Contributor

The exception message inDefinition::replaceArgument

The index "%d" is not in the range [0, %d]

is also not correct anymore in case an argument exists as a string. Then you can't actually access the argument with the given range.

@yukoff
Copy link

Seems false alarm, I'll remove confusing comment to avoid indexing and leading others to wrong place ;)

@yukoff
Copy link

Despitemy false alarm in#22979 ;) still doesn't work with PR applied locally:

PHP Fatal error:  Uncaught Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: Invalid key "collaboration" found in arguments of method "__construct()" for service "sulu_admin.js_config_pool": only integer or $named arguments are allowed. in D:\sandbox\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Compiler\ResolveNamedArgumentsPass.php:47Stack trace:#0 D:\sandbox\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass.php(57): Symfony\Component\DependencyInjection\Compiler\ResolveNamedArgumentsPass->processValue(Object(Symfony\Component\DependencyInjection\Definition), false)#1 D:\sandbox\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Compiler\ResolveNamedArgumentsPass.php(30): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue(Array, false)#2 D:\sandbox\vendor\symfony\sym in D:\sandbox\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Compiler\ResolveNamedArgumentsPass.php on line 47

Service description is quite trivial

        <serviceid="sulu_admin.js_config_pool"class="%sulu_admin.js_config_pool.class%"/>

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

@nicolas-grekas
Copy link
Member

@yukoff named args must start with a$

@yukoff
Copy link

yukoff commentedJun 2, 2017
edited
Loading

My previous comment is not actual as ofsulu/sulu#3379 - works now.

@nicolas-grekas not quite sure I got to where you're referencing... ;)

@nicolas-grekas
Copy link
Member

I'm referencing the error message you pasted just above: it looks legit to me.

@yukoff
Copy link

Oh... Anyway it seems not actual any more, thanks!

@fabpot
Copy link
Member

Thank you@dunglas.

fabpot added a commit that referenced this pull requestJun 5, 2017
…ition (dunglas)This PR was squashed before being merged into the 3.3 branch (closes#22981).Discussion----------[DependencyInjection] Fix named args support in ChildDefinition| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->| BC breaks?    | no| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aFollowing@Tobion's review of#21383.Commits-------1ab3e41 [DependencyInjection] Fix named args support in ChildDefinition
@fabpotfabpot closed thisJun 5, 2017
@fabpotfabpot mentioned this pull requestJun 5, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

7 participants

@dunglas@xabbuh@Tobion@yukoff@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp