Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/digital-blueprint/relay-mono-connector-generic-bundle

A generic connector for the mono bundle for the Relay API gateway
https://github.com/digital-blueprint/relay-mono-connector-generic-bundle

digital-blueprint payment-integration relay-bundle symfony-bundle

Last synced: about 2 months ago
JSON representation

A generic connector for the mono bundle for the Relay API gateway

Awesome Lists containing this project

README

        

# DbpRelayMonoConnectorGenericBundle

[GitHub](https://github.com/digital-blueprint/relay-mono-connector-generic-bundle) |
[Packagist](https://packagist.org/packages/dbp/relay-mono-connector-generic-bundle)

[![Test](https://github.com/digital-blueprint/relay-mono-connector-generic-bundle/actions/workflows/test.yml/badge.svg)](https://github.com/digital-blueprint/relay-mono-connector-generic-bundle/actions/workflows/test.yml)

A generic connector for the mono bundle for the Relay API gateway

## Bundle installation

You can install the bundle directly from [packagist.org](https://packagist.org/packages/dbp/relay-mono-connector-generic-bundle).

```bash
composer require dbp/relay-mono-connector-generic-bundle
```

## Integration into the API Server

* Add the necessary bundles to your `config/bundles.php`:

```php
...
Dbp\Relay\MonoBundle\DbpRelayMonoBundle::class => ['all' => true],
Dbp\Relay\MonoConnectorGenericBundle\DbpRelayMonoConnectorGenericBundle::class => ['all' => true],
Dbp\Relay\CoreBundle\DbpRelayCoreBundle::class => ['all' => true],
];
```

* Run `composer install` to clear caches

## Configuration

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

```yaml
dbp_relay_mono_connector_generic:
```

For more info on bundle configuration see [Symfony bundles configuration](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.

```bash
# updates and installs dependencies from dbp/relay-mono-connector-generic-bundle
composer update dbp/relay-mono-connector-generic-bundle
```