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

ViewServiceProvider::preflight() never called #5

Closed
entr opened this issue Jan 26, 2019 · 2 comments
Closed

ViewServiceProvider::preflight() never called #5

entr opened this issue Jan 26, 2019 · 2 comments

Comments

@entr
Copy link

entr commented Jan 26, 2019

I was playing around with the sage 10 branch and first thing I saw was warnings of the kind:

PHP Warning:  file_put_contents(.../acorn/cache/3ea2c06f9c61888a9945ac4a2e2619a24c0457da.php)

After some digging I found out about the preflight config in config/app.php but after enabling it warnings remained. Looks like Roots\Acorn\Application::bootProvider() first checks for boot() method and if it exists it just calls it in return while the preflight check comes after that but because Roots\Acorn\View\ViewServiceProvider provides the boot method the preflight is never called.

I would do a PR but I'm not entirely sure what approach is best since I'm not that much into the logic behind Application-ServiceProvider architecture. One would simply move the preflight check before boot is called or move it directly under the Service class itself.

@QWp6t
Copy link
Member

QWp6t commented Jan 27, 2019

Yeah this is something I was aware of when adding preflight as an option. The change in the logic is actually why tests are failing now.

I had figured it out in my head at the time how I could resolve it, but I never put it into code and now I don't remember where I was wanting to go with it.

Thanks for taking the time to test Sage 10 and report this issue.

@QWp6t
Copy link
Member

QWp6t commented Jun 18, 2019

This was fixed at some point, but I don't recall exactly which commit it was.

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

No branches or pull requests

2 participants