FluxBB\Core\CoreServiceProvider::registerBindings PHP Method

registerBindings() protected method

Register the IoC container bindings.
protected registerBindings ( ) : void
return void
    protected function registerBindings()
    {
        $this->app->bind('FluxBB\\Models\\GroupRepositoryInterface', function ($app) {
            return new GroupRepository($app['cache']);
        });
        $this->app->bind('FluxBB\\Models\\ConfigRepositoryInterface', function ($app) {
            return new ConfigRepository($app['cache.store'], $app['Illuminate\\Database\\ConnectionInterface']);
        });
        $this->app->bind('FluxBB\\Models\\CategoryRepositoryInterface', function ($app) {
            return new CategoryRepository($app['Illuminate\\Database\\ConnectionInterface']);
        });
        $this->app->bind('FluxBB\\Models\\ConversationRepositoryInterface', function ($app) {
            return new ConversationRepository($app['Illuminate\\Database\\ConnectionInterface']);
        });
    }