Vinelab / minion

A Simplified Client for WAMP v2 (Web Application Messaging Protocol) with command line support - PHP WebSocket Made Easy
MIT License
126 stars 16 forks source link

Fatal error: Call to a member function call() on null #8

Open nadavvin opened 8 years ago

nadavvin commented 8 years ago

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

Mulkave commented 7 years ago

@nadavvin can you please share the code that is producing this error?

allejik commented 7 years ago

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

Mulkave commented 7 years ago

@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.

allejik commented 7 years ago

@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.

Mulkave commented 7 years ago

@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?

allejik commented 7 years ago

@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.