Define interfaces for import and export handle class

nouveau fichier: core/lib/Thelia/ImportExport/ExportHandlerInterface.php
	nouveau fichier: core/lib/Thelia/ImportExport/ImportHandlerInterface.php
This commit is contained in:
Benjamin Perche
2014-07-10 15:12:40 +02:00
parent 178ed493f0
commit 4e5bbd7f60
2 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace Thelia\ImportExport;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Interface ExportHandlerInterface
* @package Thelia\ImportExport
* @author Benjamin Perche <bperche@openstudio.fr>
*/
interface ExportHandlerInterface
{
/**
* @param ContainerInterface $container
*
* Dependency injection: load the container to be able to get parameters and services
*/
public function __construct(ContainerInterface $container);
/**
* @return \Thelia\Core\FileFormat\Formatting\FormatterData
*
* The method builds
*/
public function buildFormatterData();
}

View File

@@ -0,0 +1,37 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace Thelia\ImportExport;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Thelia\Core\FileFormat\Formatting\FormatterData;
/**
* Interface ImportHandlerInterface
* @package Thelia\ImportExport
* @author Benjamin Perche <bperche@openstudio.fr>
*/
interface ImportHandlerInterface
{
/**
* @param ContainerInterface $container
*
* Dependency injection: load the container to be able to get parameters and services
*/
public function __construct(ContainerInterface $container);
/**
* @return \Thelia\Core\FileFormat\Formatting\FormatterData
*
* The method builds
*/
public function importFromFormatterData(FormatterData $data);
}