Closed jasmineleonard closed 10 years ago
I'm getting the same error and I'm not using Redis. Just the standard Cache. Any ideas?
+1 getting the same issue with memcached
This should be fixed by https://github.com/edvinaskrucas/notification/pull/26
I think this is caused by lines 49-51 in NotificationServiceProvider:
$this->app->bind('Krucas\Notification\Subscriber', function ($app) { return new Subscriber($app['session.store'], $app['config']); });
The NotificationServiceProvider is attempting to use the services provided by other service providers in its register method, but these other providers may not have been loaded yet. Specifically, when using the Redis session driver, the SessionManager tries to use the Cache class, but this has not yet been bound because the CacheServiceProvider has not yet been loaded.
Perhaps you could register the event subscriber in the boot method rather than the register method? That way it waits until all other providers have loaded, and therefore the cache class can be found.