consoneo / ecoffre-fort-bundle
Bundle for mapping HTTP API e-coffre-fort.fr
v1.1.2
2021-12-08 08:55 UTC
Requires
- php: >=5.4.1
- doctrine/doctrine-bundle: >=1.5
- doctrine/orm: >=2.4
- gedmo/doctrine-extensions: >=2.4
- symfony/monolog-bundle: ^3.3||^v3.7.0
Requires (Dev)
- mockery/mockery: dev-master
This package is not auto-updated.
Last update: 2025-02-01 18:12:49 UTC
README
Installation
To install ConsoneoEcoffreFortBundle with Composer just add the following to your 'composer.json' file:
{
require: {
"consoneo/ecoffre-fort-bundle": "*",
...
}
}
The next thing you should do is install the bundle by executing the following command:
php composer.phar update consoneo/ecoffre-fort-bundle
Finally, add the bundle to the registerBundles function of the AppKernel class in the 'app/AppKernel.php' file:
public function registerBundles()
{
$bundles = array(
...
new Consoneo\Bundle\EcoffreFortBundle\ConsoneoEcoffreFortBundle(),
...
);
Configuration
Configure the bundle by adding the following to app/config/config.yml' with your own configuration:
consoneo_ecoffre_fort:
coffres:
coffre1:
email_origin: xxx
safe_id: xxx
part_id: xxx
password: xxx
coffre2:
email_origin: xxx
safe_id: xxx
part_id: xxx
password: xxx
The Coffre map
You can access all declared coffres throught the map service. In the previous exemple, we declared a `coffre1 coffre :
$this->container->get('ecoffrefort.coffre_map')->get('coffre1');
Usage
Each Coffre of ConsoneoEcoffreFortBundle support following methods :