Commit 545e1315 by Frédéric

Sync class

parent 267fd412
......@@ -4,6 +4,8 @@ namespace Bolt\Extension\Appolo\Tourinsoft\Controller\Backend;
use Bolt\Application;
use Bolt\Controller\Backend\BackendBase;
use Bolt\Extension\Appolo\Tourinsoft\Storage\Entity\Flux;
use Bolt\Extension\Appolo\Tourinsoft\Synchronisation\Synchronisation;
use Silex\ControllerCollection;
class FluxController extends BackendBase
......@@ -60,7 +62,14 @@ dump($id);
* Synchornisation ('/sync/:id')
*/
public function sync($id) {
$flux = new Flux();
$flux->setTitle('Mon Titre');
$flux->setContentType('test');
$flux->setEnabled(true);
$flux->setKey('2184659e-c7b0-4e8c-8f08-0813bbda30a6');
$sync = new Synchronisation($this->application, $flux);
$sync->sync();
}
/**
......
<?php
namespace Bolt\Extension\Appolo\Tourinsoft\Parser;
namespace Bolt\Extension\Appolo\Tourinsoft\Synchronisation;
use Bolt\Application;
use Bolt\Extension\Appolo\Tourinsoft\Storage\Entity\Flux;
class TourinsoftParser
class Synchronisation
{
/**
* @var Application
......@@ -26,4 +27,8 @@ class TourinsoftParser
$this->application = $application;
$this->flux = $flux;
}
public function sync() {
dump('fuck');
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment