Fenos\Notifynder\NotifynderServiceProvider::notifications PHP Method

notifications() protected method

Bind the notifications.
protected notifications ( )
    protected function notifications()
    {
        $this->app->singleton('notifynder.notification', function ($app) {
            return new NotificationManager($app['notifynder.notification.repository']);
        });
        $this->app->singleton('notifynder.notification.repository', function ($app) {
            $notificationModel = $app['config']->get('notifynder.notification_model');
            $notificationInstance = $app->make($notificationModel);
            return new NotificationRepository($notificationInstance, $app['db']);
        });
        // Default store notification
        $this->app->bind('notifynder.store', 'notifynder.notification.repository');
    }