Skip to content

Conversation

hason
Copy link
Contributor

@hason hason commented Feb 23, 2016

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

@hason hason changed the title Simplified code in AutowirePass [DependencyInjection] Simplified code in AutowirePass Feb 23, 2016
@@ -148,45 +148,17 @@ private function populateAvailableType($id, Definition $definition)
$this->types[$type] = $id;
}

// Cannot use reflection if the class isn't set
Copy link
Member

Choose a reason for hiding this comment

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

Can you keep this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Move the comment then :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved.

@dunglas
Copy link
Member

dunglas commented Feb 23, 2016

👍

{
}

class F extends I implements EInterface
Copy link
Member

Choose a reason for hiding this comment

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

you also needs the case of an interface extending another interface (and the class implementing the child one), to be sure it works fine too

@fabpot
Copy link
Member

fabpot commented Feb 26, 2016

Thank you @hason.

@fabpot fabpot merged commit ce0357e into symfony:2.8 Feb 26, 2016
fabpot added a commit that referenced this pull request Feb 26, 2016
…ason)

This PR was merged into the 2.8 branch.

Discussion
----------

[DependencyInjection] Simplified code in AutowirePass

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

ce0357e [DependencyInjection] Simplified code in AutowirePass
@hason hason deleted the autowire branch February 26, 2016 22:22
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.

5 participants