src/MongolidServiceProvider.php
private function replaceQueueFailer()
    {
        $this->app->extend(
            'queue.failer',
            function ($concrete, $app) {
                $collection = $app['config']['queue.failed.collection'];

                return isset($collection)
                    ? $this->buildMongolidFailedJobProvider($app, $collection)
                    : new NullFailedJobProvider();
            }
        );
    }
private function replaceQueueFailer()
    {
        $this->app->extend(
            'queue.failer',
            function ($concrete, $app) {
                $collection = $app['config']['queue.failed.collection'];

                return isset($collection)
                    ? $this->buildMongolidFailedJobProvider($app, $collection)
                    : new NullFailedJobProvider();
            }
        );
    }
private function replaceQueueFailer ( ) { $ this -> app -> extend ( 'queue.failer' , function ( $ concrete , $ app ) { $ collection = $ app [ 'config' ] [ 'queue.failed.collection' ] ; return isset ( $ collection ) ? $ this -> buildMongolidFailedJobProvider ( $ app , $ collection ) : new NullFailedJobProvider ( ) ; } ) ; }
Rebind Laravel Failed Queue Job Provider to use Mongolid.
Rebind Laravel Failed Queue Job Provider to use Mongolid .