Fenos\Notifynder\NotifynderServiceProvider::groups PHP Method

groups() protected method

Bind Groups.
protected groups ( )
    protected function groups()
    {
        $this->app->singleton('notifynder.group', function ($app) {
            return new GroupManager($app['notifynder.group.repository'], $app['notifynder.group.category']);
        });
        $this->app->singleton('notifynder.group.repository', function () {
            return new GroupRepository(new NotificationGroup());
        });
        $this->app->singleton('notifynder.group.category', function ($app) {
            return new GroupCategoryRepository($app['notifynder.category'], new NotificationGroup());
        });
    }