Support the ongoing development of Laravel.io →
IOC Queues

Running Lumen 5.2.6

When I fire up a Job, if I do this:

    public function handle(Application $app)
    {
     dd($app);
     ...

the dump of the $app is very different than the $app that I would get if I dump at the AppServiceProvider.php level. It doesn't contain the same amount of binding which I need such as connectors and a few other binds that I have invoked via packages

I have put a var_dump($this->app); in the AppServiceProvider.php within the register() function and then a dd($app) as shown above when I invoked a php artisan queue:work command. The dump are different and I need several missing bindings in order to "complete" the job (sending to Iron.io queue, requiring some push to ElasticSearch, etc...)

Is this a lumen bug or am I not understanding something in Laravel?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

beerbuddha beerbuddha Joined 24 May 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.