Skip to content

Conversation

@jankonas
Copy link
Contributor

@jankonas jankonas commented Jun 6, 2018

Adds configuration option for excluding some paths from annotation driver search.

This is useful when you have some executable code in searched directories.

For example when you have whole %appDir% in paths, you can exclude %appDir%/bootstrap.php and other files, so their code is not executed when the annotation driver parses annotations. Otherwise it would be, as the parsed files are included inside AnnotationDriver::getAllClassNames method by require_once function.

@f3l1x
Copy link
Member

f3l1x commented Jun 7, 2018

Thank you.

@f3l1x f3l1x merged commit 285af68 into contributte:master Jun 7, 2018
@f3l1x f3l1x added the feature label Jun 7, 2018
@f3l1x f3l1x added this to the v0.2 milestone Jun 7, 2018
@jankonas jankonas deleted the annotation-exclude-paths branch July 7, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants