dbp/relay-campusonline-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

v0.1.6 2021-11-11 09:49 UTC

This package is auto-updated.

Last update: 2022-01-04 10:57:20 UTC


README

GitLab | Packagist

This Symfony bundle contains CampusOnline services for the DBP Relay project.

Integration into the API Server

  • Add the bundle package as a dependency:
composer require dbp/relay-campusonline-bundle
  • Add the bundle to your config/bundles.php:
...
Dbp\Relay\CampusonlineBundle\DbpRelayCampusonlineBundle::class => ['all' => true],
DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true],
];
  • Run composer install to clear caches

Configuration

The bundle has some configuration values that you can specify in your app, either by hardcoding it, or by referencing an environment variable.

For this create config/packages/dbp_relay_campusonline.yaml in the app with the following content:

dbp_relay_campusonline:
  co_oauth2_ucardapi_api_url:
  co_oauth2_ucardapi_client_id:
  co_oauth2_ucardapi_client_secret:

The value gets read in DbpRelayCampusonlineExtension and passed when creating the UCardService service.

For more info on bundle configuration see https://symfony.com/doc/current/bundles/configuration.html

Development & Testing

  • Install dependencies: composer install
  • Run tests: composer test
  • Run linters: composer run lint
  • Run cs-fixer: composer run cs-fix

Bundle dependencies

Don't forget you need to pull down your dependencies in your main application if you are installing packages in a bundle.

# updates and installs dependencies from dbp/relay-campusonline-bundle
composer update dbp/relay-campusonline-bundle