2017 © Pedro Peláez
 

yii2-helper yii2-service-events-client

Allows developers to easily integrate service-events usage

image

andreyv/yii2-service-events-client

Allows developers to easily integrate service-events usage

  • Thursday, January 18, 2018
  • by andrey-tm
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1,030 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 126 % Grown

The README.md

yii2-service-events-client

Yii2 extension allows developers to easily integrate service-events usage., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require andreyv/yii2-service-events-client "^1.0"

or add, (*4)

"andreyv/yii2-service-events-client": "^1.0"

to the require section of your composer.json file., (*5)

Usage

Add the following to your bootstrap.php file, (*6)

Yii::$container->setSingleton(
    indigerd\oauth2\authfilter\Module::class,
    indigerd\oauth2\authfilter\Module::class,
    [
        'authFilter',
        null,
        [
            'authServerUrl' => 'https://auth.example.com/api/v1/',
            'clientId' => 'clientId',
            'clientSecret' => 'clientSecret',
            'testMode' => YII_ENV_TEST,
        ]
    ]
);

Yii::$container->set(
    'ServiceEventsHttpClient',
    GuzzleHttp\Client::class,
    [
        ['base_uri' => 'https://events.example.com/api/v1/'],
    ]
);

Yii::$container->set(
    andreyv\events\services\EventsServiceInterface::class,
    andreyv\events\services\EventsService::class,
    [
        Yii::$container->get('ServiceEventsHttpClient'),
    ]
);

Now you can use Events Service through DI Container., (*7)

The Versions

18/01 2018

dev-master

9999999-dev

Allows developers to easily integrate service-events usage

  Sources   Download

MIT

The Requires

 

by Andrey Vanda

service yii2 events

18/01 2018

1.0.0

1.0.0.0

Allows developers to easily integrate service-events usage

  Sources   Download

MIT

The Requires

 

by Andrey Vanda

service yii2 events