src/B2BApiServiceProvider.php
protected function registerReportTypesRepository()
    {
        $this->app->singleton(ReportTypesRepository::class, function (Container $app) {
            /** @var ConfigRepository $config */
            $config = $app->make('config');

            $repository = new ReportTypesRepository($config->get(
                sprintf('%s.report_types.uids', static::getConfigRootKeyName())
            ));

            if ($repository->hasName($name = $config->get(sprintf(
                '%s.report_types.use_as_default', static::getConfigRootKeyName()
            )))) {
                $repository->setDefaultReportType($repository->getByName($name));
            }

            return $repository;
        });

        $this->app->bind('b2b-api.report-types.repository', ReportTypesRepository::class);
    }
protected function registerReportTypesRepository()
    {
        $this->app->singleton(ReportTypesRepository::class, function (Container $app) {
            /** @var ConfigRepository $config */
            $config = $app->make('config');

            $repository = new ReportTypesRepository($config->get(
                sprintf('%s.report_types.uids', static::getConfigRootKeyName())
            ));

            if ($repository->hasName($name = $config->get(sprintf(
                '%s.report_types.use_as_default', static::getConfigRootKeyName()
            )))) {
                $repository->setDefaultReportType($repository->getByName($name));
            }

            return $repository;
        });

        $this->app->bind('b2b-api.report-types.repository', ReportTypesRepository::class);
    }
Регистрирует контейнер-коллекцию типов отчетов.

@return void