Skip to content
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

Feature/1 autowiring definitions #4

Merged
merged 2 commits into from
Feb 4, 2017
Merged

Feature/1 autowiring definitions #4

merged 2 commits into from
Feb 4, 2017

Conversation

rejinka
Copy link
Contributor

@rejinka rejinka commented Feb 3, 2017

Implements Issue #1.

$this->definition->setAutowired(true);

return $this;
}
Copy link
Owner

Choose a reason for hiding this comment

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

I don't see the point of having this? To me it duplicates autowire()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It ist some kind of duplication, yes. Instead of this method, i could add a parameter to the constructor.

@mnapoli
Copy link
Owner

mnapoli commented Feb 3, 2017

Except my comment above this looks really great!

@rejinka
Copy link
Contributor Author

rejinka commented Feb 4, 2017

I changed the code, so that we have no duplication. If you're happy with the solution, let me stash the commits before merging.

I thought about moving all methods of the CreateDefinitionHelper to a base class and make a specialization for the autowiring. When the next "special helper function" comes, we'd need another parameter in the constructor, which could get confusing. But perhaps i think to far in the context of this PR. Thoughts?

@mnapoli
Copy link
Owner

mnapoli commented Feb 4, 2017

👍 for merging. I'm fine to merge commits as they are, or feel free to rebase. Let me know.

@mnapoli mnapoli mentioned this pull request Feb 4, 2017
@mnapoli
Copy link
Owner

mnapoli commented Feb 4, 2017

Oh also I forgot please add docs to the README if you have time. If you don't I'll add them later.

@rejinka
Copy link
Contributor Author

rejinka commented Feb 4, 2017

Yeah, will do so, as soon as i'm at my notebook.

@rejinka
Copy link
Contributor Author

rejinka commented Feb 4, 2017

Ping @mnapoli

@mnapoli
Copy link
Owner

mnapoli commented Feb 4, 2017

Awesome thanks!

@mnapoli mnapoli merged commit 5fc20af into mnapoli:master Feb 4, 2017
@mnapoli mnapoli mentioned this pull request Feb 4, 2017
@rejinka rejinka deleted the feature/1_autowiring_definitions branch February 4, 2017 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants