broadcastpoint/bp-common-bundle

There is no license information available for the latest version (v1.2.1) of this package.

The BroadcastPoint **CommonBundle** providesconfiguration and services common to all BP-based bundles.

Installs: 0

Dependents: 2

Suggesters: 0

Type:symfony-bundle

v1.2.1 2021-07-13 06:37 UTC

README

The BroadcastPoint CommonBundle provides configuration and services common to all BP-based bundles.

For instructions on how to use the bundle, refer to the bundle's documentation.

Installation

These instructions assume the consuming application uses Symfony Flex.

Add the following repository to the application's composer.json file:

"repositories": [
    {
        "type": "composer",
        "url": "https://code.int.savagebull.com.au"
    }
]

Open a command console, enter the project directory, and execute:

$ composer require boardcastpoint/bp-common-bundle

Post-Installation

This section describes post-installation steps required for the bundle to work correctly. Steps are divided into the following sections:

Parameters

For the correct operation of console commands across all BP-based bundles, it's recommended you configure a global request context, like so:

# config/services.yaml
parameters:
  router.request_context.host: example.org
  router.request_context.scheme: https
  router.request_context.base_url: /my/path

Persistence

This bundle relies on Doctrine for persistence. After installing this bundle, ensure a connection to a database is correctly configured before executing:

$ php bin/console doctrine:schema:update --force

Testing

When setting up locally, if you want to run tests make sure you run composer with prefer-source as new versions remove tests

composer install --dev --prefer-source

Ensure the bundle has all development dependencies available, then open a command console, enter the project directory, and execute:

$ composer test