Padarom's avatar

Segfault on Container::make('view')

Hey there,

I'm currently setting up a small Lumen installation that I can use for some minor projects and tests I want to be working on in the future. For each of my projects I want to use a custom view namespace. Projects are for instance located at app\Projects\Example, with their own custom service providers, controllers, views and so on. Their service provider extends a base project class, that is supposed to register their view namespace and do a little more setup.

I've tried enabling Facades, but this didn't work, so I went with this:

  1. Register the Illuminate\View\ViewServiceProvider in bootstrap/app.php
  2. Register my custom ProjectServiceProvider
  3. In the project base class, obtain the instance of the view factory with $this->app['view']

When I then try to run artisan or access the homepage, I get a Segmentation fault. $this->app->bound('view') returns true, proving that it actually is registered.

Am I missing something? Where does the segfault come from?

Thanks!

0 likes
0 replies

Please or to participate in this conversation.