dekalee/cdn77-bundle

A bundle to use the lib to communicate with the cdn77 api

Installs: 10 860

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v1.5.1 2018-04-11 11:58 UTC

README

Scrutinizer Code Quality Latest Stable Version Total Downloads License

This symfony bundle wraps the usage of the library Cdn77

Installation

Use composer to install this bundle :

    composer require dekalee/cdn77-bundle

Activate it in the AppKernel.php file:

    new Dekalee\Cdn77Bundle\DekaleeCdn77Bundle(),

Configuration

In the config.yml file, you should set at least :

    dekalee_cdn77:
        login: %dekalee_cnd77_login%
        password: %dekalee_cnd77_password%

If you want to override the api urls used, you can do it for each of them :

    dekalee_cdn77:
        list: Your url
        create: Your url
        purge: Your url
        purge_all: Your url
        resource_log: Your url
        delete_resource: Your url

Usage

To use a query in your project, you can call (from a ContainerAwareInterface class) :

    $this->container->get('dekalee_cdn77.query.purge_all')->execute();

Each action will have it's own service.

Debug

In order to see some usefull debug information in the symfony profiler, you can install the eightpoints/guzzle-bundle.