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

Fix controller injections when there are no dirs to scan #288

Merged
merged 1 commit into from
Sep 30, 2017
Merged

Fix controller injections when there are no dirs to scan #288

merged 1 commit into from
Sep 30, 2017

Conversation

gremo
Copy link
Contributor

@gremo gremo commented Sep 28, 2017

This should solve #287.

With empty configuration or when the combination of all_bundles and bundles options led up to empty folders in controller injector warmer, the finder component throws an exception.

Offending commit 55c3f87

@greg0ire
Copy link
Contributor

greg0ire commented Sep 28, 2017

@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.
Copy link
Contributor

@greg0ire greg0ire Sep 28, 2017

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

Copy link
Contributor Author

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...

Copy link
Contributor

@greg0ire greg0ire Sep 28, 2017

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

@adaniloff
Copy link

@gremo @greg0ire
Seems fine to me !
I'll test it on my workstation tomorrow but I think it's okay.

Thanks.

@adaniloff
Copy link

adaniloff commented Sep 29, 2017

@gremo The PR works fine in my case !
It can be merged.

@greg0ire
Copy link
Contributor

@GuilhemN , this looks RTM

@GuilhemN GuilhemN merged commit 2116253 into schmittjoh:master Sep 30, 2017
@GuilhemN
Copy link
Collaborator

Thank you guys for taking care of this ☺

@gremo gremo deleted the fix-controller-injections branch September 30, 2017 13:17
@gremo
Copy link
Contributor Author

gremo commented Sep 30, 2017

Thanks @GuilhemN , can you tag a new release?

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.

4 participants