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

Flush error in Laravel 4 #11

Closed
russback opened this issue Apr 8, 2015 · 0 comments
Closed

Flush error in Laravel 4 #11

russback opened this issue Apr 8, 2015 · 0 comments

Comments

@russback
Copy link

russback commented Apr 8, 2015

Call to undefined method Illuminate\Foundation\Application::resolved() in /var/www/booking/vendor/jenssegers/rollbar/src/RollbarServiceProvider.php on line 34

I've not tried Laravel 5 so not sure what the best fix is, but changing the code from this:

    // Flush callback
    $flush = function() use ($app)
    {
        if ($app->resolved('rollbar.client'))
        {
            $app['rollbar.client']->flush();
        }
    };

To this:

    // Flush callback
    $flush = function() use ($app)
    {
        if ($app->app['rollbar.client'])
        {
            $app['rollbar.client']->flush();
        }
    };

Worked for me

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

1 participant