-
Notifications
You must be signed in to change notification settings - Fork 156
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
Add a way to load fixtures from a specific bundle #130
Conversation
I like the idea, but don't like the implementation, could you re-factor it into using the |
👍 |
I don't like the @ before the name of the template. Can we just tell the bundle name instead? |
@hhamon isn't a kind of convention used in other bundles? |
Is the actual path fixed, or do we want to specify a complete path to the fixtures directory. |
I have never seen the @ notation from a CLI command in Symfony... |
|
Yep, the cool thing with Behat commands is running very specifics scenarios with @Bundle/featurefile:line (for example) but I'm not sure we need that. |
Yeah, I like the |
I'm sorry but I'm not sure I see what you mean when you want me to use the FileLocator, as all I'm doing is retrieving a path. You want to get rid of the absoluteFixturesPath property ? |
There is a |
For your information, the |
I can remove it, I only had Behat in mind when I wrote this so... |
…ed in the FixtureLoadCommand class
Updated :) |
$files = $finder->in(null !== $in ? $in : $this->absoluteFixturesPath); | ||
|
||
if (null === $this->bundle) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove this blank line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it was in the Symfony2's CS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it is, but just if you have code before I think..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the first code example: http://symfony.com/doc/current/contributing/code/standards.html the first return in the transform
method doesn't have a blank line before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, fixed!
Add a way to load fixtures from a specific bundle
Thanks! |
Hiii, my first contribution to Propel \o/ |
Today I wanted to load a set of fixtures from a specific bundle. With this PR you'll be able to do :
What do you think?