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

Exclusion Strategy #14

Merged
merged 7 commits into from
Dec 21, 2016
Merged

Exclusion Strategy #14

merged 7 commits into from
Dec 21, 2016

Conversation

miguelgf
Copy link
Contributor

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

@miguelgf
Copy link
Contributor Author

ping @Spea

$this->dumper->dump('/foo', 'php');
}


Copy link
Owner

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);
}
Copy link
Owner

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
Copy link
Owner

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/*
Copy link
Owner

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.

Copy link
Owner

@Spea Spea left a 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);
}
}
Copy link
Owner

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

@Spea Spea merged commit 6c17842 into Spea:master Dec 21, 2016
@Spea
Copy link
Owner

Spea commented Dec 21, 2016

Thx for the PR. Will create a new release sometime today.

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.

2 participants