dekalee/cdn77-bundle

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

v1.4.1 2017-11-29 11:27 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

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.