Refactor some classes namespaces
modifié: core/lib/Thelia/Controller/Admin/ImportExportController.php renommé: core/lib/Thelia/ImportExport/DocumentsExportInterface.php -> core/lib/Thelia/ImportExport/Export/DocumentsExportInterface.php renommé: core/lib/Thelia/ImportExport/ImagesExportInterface.php -> core/lib/Thelia/ImportExport/Export/ImagesExportInterface.php renommé: core/lib/Thelia/ImportExport/Export/MailingExport.php -> core/lib/Thelia/ImportExport/Export/Type/MailingExport.php renommé: core/lib/Thelia/ImportExport/Import/ProductStockImport.php -> core/lib/Thelia/ImportExport/Import/Type/ProductStockImport.php modifié: core/lib/Thelia/Model/Export.php modifié: core/lib/Thelia/Tests/ImportExport/Export/MailingExportTest.php
This commit is contained in:
@@ -19,8 +19,8 @@ use Thelia\Core\Template\Loop\Export as ExportLoop;
|
|||||||
use Thelia\Core\Template\Loop\Import as ImportLoop;
|
use Thelia\Core\Template\Loop\Import as ImportLoop;
|
||||||
use Thelia\Form\Exception\FormValidationException;
|
use Thelia\Form\Exception\FormValidationException;
|
||||||
use Thelia\Form\ExportForm;
|
use Thelia\Form\ExportForm;
|
||||||
use Thelia\ImportExport\DocumentsExportInterface;
|
use Thelia\ImportExport\Export\DocumentsExportInterface;
|
||||||
use Thelia\ImportExport\ImagesExportInterface;
|
use Thelia\ImportExport\Export\ImagesExportInterface;
|
||||||
use Thelia\Model\ExportQuery;
|
use Thelia\Model\ExportQuery;
|
||||||
use Thelia\Model\ImportQuery;
|
use Thelia\Model\ImportQuery;
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||||
/* file that was distributed with this source code. */
|
/* file that was distributed with this source code. */
|
||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
namespace Thelia\ImportExport;
|
namespace Thelia\ImportExport\Export;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface DocumentsExportInterface
|
* Interface DocumentsExportInterface
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||||
/* file that was distributed with this source code. */
|
/* file that was distributed with this source code. */
|
||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
namespace Thelia\ImportExport;
|
namespace Thelia\ImportExport\Export;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10,10 +10,11 @@
|
|||||||
/* file that was distributed with this source code. */
|
/* file that was distributed with this source code. */
|
||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\ImportExport\Export;
|
namespace Thelia\ImportExport\Export\Type;
|
||||||
use Thelia\Core\FileFormat\Formatting\FormatterData;
|
use Thelia\Core\FileFormat\Formatting\FormatterData;
|
||||||
use Thelia\Core\FileFormat\FormatType;
|
use Thelia\Core\FileFormat\FormatType;
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
|
use Thelia\ImportExport\Export\ExportHandler;
|
||||||
use Thelia\Model\CustomerQuery;
|
use Thelia\Model\CustomerQuery;
|
||||||
use Thelia\Model\Map\CustomerTableMap;
|
use Thelia\Model\Map\CustomerTableMap;
|
||||||
use Thelia\Model\Map\NewsletterTableMap;
|
use Thelia\Model\Map\NewsletterTableMap;
|
||||||
@@ -10,11 +10,12 @@
|
|||||||
/* file that was distributed with this source code. */
|
/* file that was distributed with this source code. */
|
||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\ImportExport\Import;
|
namespace Thelia\ImportExport\Import\Type;
|
||||||
use Propel\Runtime\Collection\ObjectCollection;
|
use Propel\Runtime\Collection\ObjectCollection;
|
||||||
use Thelia\Core\FileFormat\Formatting\FormatterData;
|
use Thelia\Core\FileFormat\Formatting\FormatterData;
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
use Thelia\Core\FileFormat\FormatType;
|
use Thelia\Core\FileFormat\FormatType;
|
||||||
|
use Thelia\ImportExport\Import\ImportHandler;
|
||||||
use Thelia\Model\ProductSaleElementsQuery;
|
use Thelia\Model\ProductSaleElementsQuery;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -5,9 +5,9 @@ namespace Thelia\Model;
|
|||||||
use Propel\Runtime\ActiveQuery\Criteria;
|
use Propel\Runtime\ActiveQuery\Criteria;
|
||||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
use Thelia\ImportExport\DocumentsExportInterface;
|
use Thelia\ImportExport\Export\DocumentsExportInterface;
|
||||||
use Thelia\ImportExport\Export\ExportHandler;
|
use Thelia\ImportExport\Export\ExportHandler;
|
||||||
use Thelia\ImportExport\ImagesExportInterface;
|
use Thelia\ImportExport\Export\ImagesExportInterface;
|
||||||
use Thelia\Model\Base\Export as BaseExport;
|
use Thelia\Model\Base\Export as BaseExport;
|
||||||
use Thelia\Model\Map\ExportTableMap;
|
use Thelia\Model\Map\ExportTableMap;
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace Thelia\Tests\ImportExport\Export;
|
|||||||
use Symfony\Component\DependencyInjection\Container;
|
use Symfony\Component\DependencyInjection\Container;
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
use Thelia\Core\FileFormat\FormatType;
|
use Thelia\Core\FileFormat\FormatType;
|
||||||
use Thelia\ImportExport\Export\MailingExport;
|
use Thelia\ImportExport\Export\Type\MailingExport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class MailingExportTest
|
* Class MailingExportTest
|
||||||
@@ -23,7 +23,7 @@ use Thelia\ImportExport\Export\MailingExport;
|
|||||||
*/
|
*/
|
||||||
class MailingExportTest extends \PHPUnit_Framework_TestCase
|
class MailingExportTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/** @var MailingExport $handler */
|
/** @var \Thelia\ImportExport\Export\Type\MailingExport $handler */
|
||||||
protected $handler;
|
protected $handler;
|
||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
@@ -32,7 +32,7 @@ class MailingExportTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
new Translator($container);
|
new Translator($container);
|
||||||
|
|
||||||
$this->handler = new MailingExport($container);
|
$this->handler = new \Thelia\ImportExport\Export\Type\MailingExport($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testExport()
|
public function testExport()
|
||||||
|
|||||||
Reference in New Issue
Block a user