dekalee / cdn77-bundle
A bundle to use the lib to communicate with the cdn77 api
Installs: 14 157
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- dekalee/cdn77: ~1.3
- symfony/console: ~2.3|~3.0|^4.0
- symfony/framework-bundle: ~2.3|~3.0|^4.0
Suggests
- eightpoints/guzzle-bundle: To enable guzzle query debugging
README
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.