Releases: maillotf/ikentoo-bridge-bundle
Releases · maillotf/ikentoo-bridge-bundle
Ikentoo Bridge Bundle@1.0.0
Ikentoo-bridge-bundle
Symfony bundle for Ikentoo which is base on token authentication
Required configuration
Modify framework.yaml
ikentoo:
authentication:
protocol: "http"
host: "127.0.0.1"
port: "80"
token: "TOKEN"
Modify services.yaml
services:
MaillotF\Ikentoo\IkentooBridgeBundle\Service\IkentooService: '@ikentoo.service'
##Package instalation with composer
$ composer require maillotf/ikentoo-bridge-bundle
Use in controller:
<?php
//...
use MaillotF\Ikentoo\IkentooBridgeBundle\Service\IkentooService;
class exampleController extends AbstractController
{
/**
* Example
*
* @Route("example", name="example", methods={"GET"})
*
*/
public function test(IkentooService $is)
{
$from = new \DateTime('2020-01-09');
$to = new \DateTime('2020-10-09');
$result = $is->financial->getReceiptTransactionsRange("101163659689986", $from, $to, array('staff'), 1000);
$menu = $is->orderAndPayment->loadMenu("101163222689111", 101112359691234, true)
return ($this->json($menu));
}
}