-
Notifications
You must be signed in to change notification settings - Fork 15
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
Exclusion Strategy #14
Conversation
ping @Spea |
a0794b4
to
c1a596b
Compare
$this->dumper->dump('/foo', 'php'); | ||
} | ||
|
||
|
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.
remove the two extra lines
* @return boolean true, if this class should be skipped | ||
*/ | ||
public function shouldSkipClass(ClassMetadata $metadata); | ||
} |
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.
Always add a new line at the end of the file
/** | ||
* Indicates if this class should be skipped and do not generate fixtures for this class | ||
* | ||
* @param $metadata |
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.
type missing
@@ -2,3 +2,5 @@ vendor/ | |||
bin/ | |||
phpunit.xml | |||
composer.lock | |||
|
|||
.idea/* |
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.
IMO this should be in your global .gitignore, but you can keep it here aswell.
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.
Only one more change, will merge it then :)
return in_array(ClassUtils::getClassName($metadata->getName()), $this->skipClassesNames) || | ||
in_array($metadata->getName(), $this->skipClassesNames); | ||
} | ||
} |
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.
Missing the new line here aswell
Thx for the PR. Will create a new release sometime today. |
Posibility to define a strategy to exclude some entities to be dumped. Includes an implementation of this strategy to define an array of class names or FQN to be excluded.
Closes #12