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:
Benjamin Perche
2014-07-17 10:57:09 +02:00
parent a6f008fde2
commit b86683a580
7 changed files with 13 additions and 11 deletions

View File

@@ -19,8 +19,8 @@ use Thelia\Core\Template\Loop\Export as ExportLoop;
use Thelia\Core\Template\Loop\Import as ImportLoop;
use Thelia\Form\Exception\FormValidationException;
use Thelia\Form\ExportForm;
use Thelia\ImportExport\DocumentsExportInterface;
use Thelia\ImportExport\ImagesExportInterface;
use Thelia\ImportExport\Export\DocumentsExportInterface;
use Thelia\ImportExport\Export\ImagesExportInterface;
use Thelia\Model\ExportQuery;
use Thelia\Model\ImportQuery;

View File

@@ -9,7 +9,7 @@
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace Thelia\ImportExport;
namespace Thelia\ImportExport\Export;
/**
* Interface DocumentsExportInterface

View File

@@ -9,7 +9,7 @@
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace Thelia\ImportExport;
namespace Thelia\ImportExport\Export;
/**

View File

@@ -10,10 +10,11 @@
/* 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\FormatType;
use Thelia\Core\Translation\Translator;
use Thelia\ImportExport\Export\ExportHandler;
use Thelia\Model\CustomerQuery;
use Thelia\Model\Map\CustomerTableMap;
use Thelia\Model\Map\NewsletterTableMap;

View File

@@ -10,11 +10,12 @@
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace Thelia\ImportExport\Import;
namespace Thelia\ImportExport\Import\Type;
use Propel\Runtime\Collection\ObjectCollection;
use Thelia\Core\FileFormat\Formatting\FormatterData;
use Thelia\Core\Translation\Translator;
use Thelia\Core\FileFormat\FormatType;
use Thelia\ImportExport\Import\ImportHandler;
use Thelia\Model\ProductSaleElementsQuery;
/**

View File

@@ -5,9 +5,9 @@ namespace Thelia\Model;
use Propel\Runtime\ActiveQuery\Criteria;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Thelia\Core\Translation\Translator;
use Thelia\ImportExport\DocumentsExportInterface;
use Thelia\ImportExport\Export\DocumentsExportInterface;
use Thelia\ImportExport\Export\ExportHandler;
use Thelia\ImportExport\ImagesExportInterface;
use Thelia\ImportExport\Export\ImagesExportInterface;
use Thelia\Model\Base\Export as BaseExport;
use Thelia\Model\Map\ExportTableMap;

View File

@@ -14,7 +14,7 @@ namespace Thelia\Tests\ImportExport\Export;
use Symfony\Component\DependencyInjection\Container;
use Thelia\Core\Translation\Translator;
use Thelia\Core\FileFormat\FormatType;
use Thelia\ImportExport\Export\MailingExport;
use Thelia\ImportExport\Export\Type\MailingExport;
/**
* Class MailingExportTest
@@ -23,7 +23,7 @@ use Thelia\ImportExport\Export\MailingExport;
*/
class MailingExportTest extends \PHPUnit_Framework_TestCase
{
/** @var MailingExport $handler */
/** @var \Thelia\ImportExport\Export\Type\MailingExport $handler */
protected $handler;
public function setUp()
@@ -32,7 +32,7 @@ class MailingExportTest extends \PHPUnit_Framework_TestCase
new Translator($container);
$this->handler = new MailingExport($container);
$this->handler = new \Thelia\ImportExport\Export\Type\MailingExport($container);
}
public function testExport()