I was following Laracast video on Commander. However, when I ran it I kept getting 502 bad gateway error. I've narrowed the cause down to when I inject CommandBus into registrationController __construct. As soon as I remove it, I no longer get 502 error. However, when I put it back in and run it through Codeception I see that it runs into an infinite recursion.
I was following Laracast video on Commander. However, when I ran it I kept getting 502 bad gateway error. I've narrowed the cause down to when I inject CommandBus into registrationController __construct. As soon as I remove it, I no longer get 502 error. However, when I put it back in and run it through Codeception I see that it runs into an infinite recursion.
PHP stack trace shows this: PHP 38. Illuminate\Foundation\Application->make() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:78 PHP 39. Illuminate\Container\Container->make() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:463 PHP 40. Illuminate\Container\Container->build() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Container/Container.php:432 PHP 41. Illuminate\Container\Container->getDependencies() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Container/Container.php:543 PHP 42. Illuminate\Container\Container->resolveClass() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Container/Container.php:576 PHP 43. Illuminate\Foundation\Application->make() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Container/Container.php:617 PHP 44. Illuminate\Container\Container->make() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:463 PHP 45. Illuminate\Container\Container->build() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Container/Container.php:432 PHP 46. Illuminate\Container\Container->Illuminate\Container{closure}() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Container/Container.php:507 PHP 47. Laracasts\Commander\CommanderServiceProvider->Laracasts\Commander{closure}() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Container/Container.php:216 PHP 48. Illuminate\Foundation\Application->make() /vagrant/finit/vendor/laracasts/commander/src/Laracasts/Commander/CommanderServiceProvider.php:56 PHP 49. Illuminate\Container\Container->make() /vagrant/finit/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:463