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

Method 'trigger' not found in class \Vinkla\Pusher\PusherManager #5

Closed
Kryptonit3-zz opened this issue Jun 14, 2015 · 12 comments
Closed

Comments

@Kryptonit3-zz
Copy link

Well, I decided to give this package another go with Laravel 5.1. Not sure what the issue is. None of the Pusher SDK methods are available when I try your dependency injection method.

use Vinkla\Pusher\PusherManager;

class Foo
{
    protected $pusher;

    public function __construct(PusherManager $pusher)
    {
        $this->pusher = $pusher;
    }

    public function bar()
    {
        $this->pusher->trigger('my-channel', 'my-event', ['message' => $message]);
    }
}

Anyway to fix this so autocompletion will work?

@Kryptonit3-zz
Copy link
Author

also getting this when trying to use Facade

ErrorException in AbstractManager.php line 234: 

call_user_func_array() expects parameter 1 to be a valid callback, class 'Vinkla\Pusher\Facades\Pusher' does not have a method 'trigger'

@noprobz09
Copy link

Same here, I also encounter same issue, is there any other way to resolve the issue?

@Kryptonit3-zz
Copy link
Author

@noprobz09 just use this https://github.com/Kryptonit3/Pusher

@noprobz09
Copy link

Cool, Thanks, I will try this one.

@vinkla
Copy link
Contributor

vinkla commented Jun 29, 2015

@Kryptonit3 please see #2 for facade usage. Could you please provide your setup/code using the Pusher manager class?

@noprobz09
Copy link

I tried to install using the composer but the error says "could not find package krytonit3/pusher at any version for you minimum stability(stable). Check the package spelling or your minimum stabilty." Do you have any idea about this?

@noprobz09
Copy link

I tried this command "composer require kryptonit3/pusher"

@noprobz09
Copy link

By the way, I'm using Laravel 5.0

@Kryptonit3-zz
Copy link
Author

@noprobz09 try again. Forgot i had stability set to dev.

@noprobz09
Copy link

wow..... I really like your extension, I love this, I will recommend your extension. I really have trouble using some of the extension before, Its not really well documented, and it needs time to debug. Thank you for creating this very simple package but very really amazing extension ;) Keep it up :)

@vinkla
Copy link
Contributor

vinkla commented Jun 29, 2015

Closing this. Please move this conversation to @Kryptonit3's Pusher package.

@vinkla vinkla closed this as completed Jun 29, 2015
@shealan
Copy link

shealan commented Jun 3, 2016

Can't get this to work in Laravel 5.2. Getting this "Method 'trigger' not found in class" error.

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

4 participants