memberpoint/wos-member-qualifications-bundle

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

v1.60 2021-12-12 23:33 UTC

README

The MemberPoint Whole-Of-Sports (WOS) MemberQualificationsBundle provides functionality for the management of member qualifications.

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 memberpoint/wos-member-qualifications-bundle

Post-Installation

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

Mail

For this bundle to be fully operational, the Swift Mailer service needs to be configured. To aid in development, Mailtrap is recommended as an SMTP mail server.

A sample .env file using Mailtrap is as follows:

MAILER_URL=smtp://smtp.mailtrap.io:2525?auth_mode=cram-md5&username=<foo>&password=<bar>

Ensure an application-wide sender address is also configured:

# config/packages/wos_common.yaml
wos_common:
  mail:
    sender_address: <an-email-address>

For more information on WOS common configuration options, refer to the [MemberPoint Whole-Of-Sports (WOS) CommonBundle][3] documentation.

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

Routes

This bundle defines a collection of routes that serve as JSON API-endpoints. If the consuming application wishes to expose these endpoints, be sure to import them into the application's routing configuration:

# config/routes.yaml
wos_member_qualification_api:
  resource: '@WOSMemberQualificationsBundle/Resources/config/routing-api.yaml'
  prefix: /api

Testing

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

$ vendor/bin/phpunit --testdox --coverage-text