-
Notifications
You must be signed in to change notification settings - Fork 130
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
Fix controller injections when there are no dirs to scan #288
Conversation
@adaniloff @mzampetakis please review |
require_once $filename; | ||
// Combination of scanAllBundles/scanBundles can lead to empty dirs. | ||
// Only search for controllers if we have at least one directory, | ||
// otherwise the finder will throw an exception. |
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.
Please use multiline syntax (/*
) for multiline comments
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.
Are you sure? There is a comment a few lines below and I used the same style...
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.
Oh ok forget it then I guess :P
@gremo The PR works fine in my case ! |
@GuilhemN , this looks RTM |
Thank you guys for taking care of this ☺ |
Thanks @GuilhemN , can you tag a new release? |
This should solve #287.
With empty configuration or when the combination of
all_bundles
andbundles
options led up to empty folders in controller injector warmer, the finder component throws an exception.Offending commit 55c3f87