Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nadavvin opened this issue Dec 30, 2015 · 6 comments
Open

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

nadavvin opened this issue Dec 30, 2015 · 6 comments

Comments

@nadavvin
Copy link

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
Copy link
Member

Mulkave commented Nov 11, 2016

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

@allejik
Copy link

allejik commented May 4, 2017

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
Copy link
Member

Mulkave commented May 4, 2017

@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
Copy link

allejik commented May 4, 2017

@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
Copy link
Member

Mulkave commented May 5, 2017

@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
Copy link

allejik commented May 5, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants