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

[DI] Add logging and better failure recovery to AutowirePass#22095

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
fabpot merged 1 commit intosymfony:masterfromnicolas-grekas:di-autow-log
Mar 21, 2017

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

So useful to understand what autowiring is doing.

@fabpot
Copy link
Member

👍

$this->currentId =$argumentId =sprintf('autowired.%s',$typeHint->name);

$argumentDefinition =$this->container->register($argumentId,$typeHint->name);
$this->currentDefinition =$argumentDefinition = (newDefinition($typeHint->name));
Copy link
Member

Choose a reason for hiding this comment

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

braces are useless

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

removed

$this->processValue($argumentDefinition,true);
$this->container->setDefinition($argumentId,$argumentDefinition);
}catch (RuntimeException$e) {
// revert any changes done to our internal state
Copy link
Member

Choose a reason for hiding this comment

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

can we have tests covering this ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

test case added

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit3e297ba intosymfony:masterMar 21, 2017
fabpot added a commit that referenced this pull requestMar 21, 2017
…rePass (nicolas-grekas)This PR was merged into the 3.3-dev branch.Discussion----------[DI] Add logging and better failure recovery to AutowirePass| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -So useful to understand what autowiring is doing.Commits-------3e297ba [DI] Add logging and better failure recovery to AutowirePass
@nicolas-grekasnicolas-grekas deleted the di-autow-log branchMarch 21, 2017 21:29
@fabpotfabpot mentioned this pull requestMay 1, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp