biplane/yandex-direct-bundle

Integration of the biplane/yandex-direct with Symfony2

0.1.0 2017-02-27 19:11 UTC

This package is auto-updated.

Last update: 2024-10-14 08:09:06 UTC


README

Build Status

This bundle integrates the biplane-yandex-direct library with Symfony project.

Installation

Use Composer to install this bundle:

$ composer require biplane/yandex-direct-bundle

Add the bundle in your application kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Biplane\Bundle\YandexDirectBundle\BiplaneYandexDirectBundle(),
    );
}

Full configuration

biplane_yandex_direct:
    # The locale for localize message of errors.
    locale:               ru # One of "ru"; "en"; "ua"    
    user:

        # The access token for OAuth authorization
        access_token:         ~ # Required

        # The Yandex's login. Required when the master_token is set.
        login:                ~

        # The master token needs for finance operations.
        master_token:         ~
        
    dump_listener:
        enabled:   false
        dump:      all # One of "all"; "only-fail"

    dump:
        directory: '%kernel.cache_dir%/api_dumps'

License

This bundle is under the MIT license, see the LICENSE file for details.