Open nadavvin opened 8 years ago
@nadavvin can you please share the code that is producing this error?
This library doesn't work on Yii2:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to a member function call() on null
./vendor/illuminate/console/Command.php:182 $this->laravel --> null
@allejik kindly note that this package is Laravel specific, I have never used Yii before. I would appreciate a PR that makes this library Yii compatible if you have the chance.
@Mulkave sorry, I haven’t noticed that this is only for Laravel, it makes sense then. I don't think that adaptation of this library is easy for yii2, because it's using laravel framework as a base.
@allejik no worries. The hook with Laravel is rather simple and can be disconnected easily. Can you give me a hint on how to hook into Yii2?
@Mulkave I think you can try to use: use Symfony\Component\Console\Command\Command; instead of use Illuminate\Console\Command; in ./vendor/vinelab/minion/src/Vinelabel/Minion/Console/Commands/RunCommand.php:6 and make some changes in the class. It will make library more universal for my opinion.
In try to run it: vendor\bin\minion run --realm=pripra --port=9877 --register="Vinelab\Minion\DummyProvider"
I also copy DummyProvider from Example to vendor\vinelab\minion\src\Vinelab\Minion