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
Requires
- php: ^7.3 || ^8.0
- ext-json: *
- ext-simplexml: *
- guzzlehttp/guzzle: ^7.3
- league/uri: ^6.5
- symfony/framework-bundle: ^5.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.0.0
- phpstan/phpstan-phpunit: ^1.0.0
- symfony/browser-kit: ^5.2
- symfony/http-client: ^5.2
- symfony/monolog-bundle: ^3.7
- symfony/phpunit-bridge: ^5.2
- vimeo/psalm: ^4.2.1
README
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