Skip to content

Commit bfbf1b4

Browse files
committed
Move exceptions from model to module's root
1 parent 596ece9 commit bfbf1b4

30 files changed

+30
-30
lines changed

Component/AdminRoles.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use CtiDigital\Configurator\Model\LoggerInterface;
99
use Magento\Authorization\Model\UserContextInterface;
1010
use Magento\Authorization\Model\Acl\Role\Group as RoleGroup;
11-
use CtiDigital\Configurator\Model\Exception\ComponentException;
11+
use CtiDigital\Configurator\Exception\ComponentException;
1212

1313
class AdminRoles extends YamlComponentAbstract
1414
{

Component/AdminUsers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Magento\Authorization\Model\RoleFactory;
77
use Magento\Framework\ObjectManagerInterface;
88
use CtiDigital\Configurator\Model\LoggerInterface;
9-
use CtiDigital\Configurator\Model\Exception\ComponentException;
9+
use CtiDigital\Configurator\Exception\ComponentException;
1010

1111
class AdminUsers extends YamlComponentAbstract
1212
{

Component/ApiIntegrations.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use CtiDigital\Configurator\Model\LoggerInterface;
88
use Magento\Integration\Model\AuthorizationService;
99
use Magento\Integration\Api\IntegrationServiceInterface;
10-
use CtiDigital\Configurator\Model\Exception\ComponentException;
10+
use CtiDigital\Configurator\Exception\ComponentException;
1111

1212
class ApiIntegrations extends YamlComponentAbstract
1313
{

Component/AttributeSets.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CtiDigital\Configurator\Component;
44

5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66
use CtiDigital\Configurator\Model\LoggerInterface;
77
use Magento\Eav\Api\AttributeSetRepositoryInterface;
88
use Magento\Catalog\Model\Product;

Component/Attributes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CtiDigital\Configurator\Component;
44

5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66
use CtiDigital\Configurator\Model\LoggerInterface;
77
use Magento\Catalog\Model\Product;
88
use Magento\Eav\Setup\EavSetup;

Component/Blocks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CtiDigital\Configurator\Component;
44

5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66
use CtiDigital\Configurator\Model\LoggerInterface;
77
use Magento\Cms\Api\Data\BlockInterfaceFactory;
88
use Magento\Framework\ObjectManagerInterface;

Component/Categories.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CtiDigital\Configurator\Component;
44

5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66
use Magento\Framework\Webapi\Exception;
77
use Symfony\Component\Yaml\Yaml;
88

Component/ComponentAbstract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CtiDigital\Configurator\Component;
44

5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66
use CtiDigital\Configurator\Model\LoggerInterface;
77
use Magento\Framework\ObjectManagerInterface;
88

Component/Config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CtiDigital\Configurator\Component;
44

5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66
use CtiDigital\Configurator\Model\LoggerInterface;
77
use Magento\Framework\ObjectManagerInterface;
88
use Magento\Store\Model\StoreFactory;

Component/CsvComponentAbstract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Magento\Framework\File\Csv;
66
use Magento\Framework\Filesystem\Driver\File;
7-
use CtiDigital\Configurator\Model\Exception\ComponentException;
7+
use CtiDigital\Configurator\Exception\ComponentException;
88

99
/**
1010
* Class CsvComponentAbstract

Component/CustomerGroups.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Magento\Tax\Model\ClassModelFactory;
77
use Magento\Framework\ObjectManagerInterface;
88
use CtiDigital\Configurator\Model\LoggerInterface;
9-
use CtiDigital\Configurator\Model\Exception\ComponentException;
9+
use CtiDigital\Configurator\Exception\ComponentException;
1010

1111
class CustomerGroups extends YamlComponentAbstract
1212
{

Component/Customers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace CtiDigital\Configurator\Component;
33

44
use CtiDigital\Configurator\Model\LoggerInterface;
5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66
use Magento\Framework\ObjectManagerInterface;
77
use FireGento\FastSimpleImport\Model\ImporterFactory;
88
use Magento\ImportExport\Model\Import;

Component/Media.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CtiDigital\Configurator\Component;
44

5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66
use CtiDigital\Configurator\Model\LoggerInterface;
77
use Magento\Framework\App\Filesystem\DirectoryList;
88
use Magento\Framework\ObjectManagerInterface;

Component/Pages.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace CtiDigital\Configurator\Component;
44

55
use CtiDigital\Configurator\Helper\Component;
6-
use CtiDigital\Configurator\Model\Exception\ComponentException;
6+
use CtiDigital\Configurator\Exception\ComponentException;
77
use CtiDigital\Configurator\Model\LoggerInterface;
88
use Magento\Cms\Api\Data\PageInterfaceFactory;
99
use Magento\Cms\Api\PageRepositoryInterface;

Component/ProductLinks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Magento\Catalog\Api\ProductRepositoryInterface;
77
use Magento\Catalog\Api\Data\ProductLinkInterfaceFactory;
88
use Magento\Framework\ObjectManagerInterface;
9-
use CtiDigital\Configurator\Model\Exception\ComponentException;
9+
use CtiDigital\Configurator\Exception\ComponentException;
1010

1111
class ProductLinks extends YamlComponentAbstract
1212
{

Component/Products.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use CtiDigital\Configurator\Component\Product\Image;
88
use CtiDigital\Configurator\Component\Product\AttributeOption;
99
use FireGento\FastSimpleImport\Model\ImporterFactory;
10-
use CtiDigital\Configurator\Model\Exception\ComponentException;
10+
use CtiDigital\Configurator\Exception\ComponentException;
1111

1212
/**
1313
* Class Products

Component/Rewrites.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Magento\UrlRewrite\Model\UrlRewriteFactory;
77
use Magento\UrlRewrite\Model\UrlPersistInterface;
88
use CtiDigital\Configurator\Model\LoggerInterface;
9-
use CtiDigital\Configurator\Model\Exception\ComponentException;
9+
use CtiDigital\Configurator\Exception\ComponentException;
1010

1111
class Rewrites extends CsvComponentAbstract
1212
{

Component/TaxRates.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Magento\Framework\ObjectManagerInterface;
66
use CtiDigital\Configurator\Model\LoggerInterface;
77
use Magento\TaxImportExport\Model\Rate\CsvImportHandler;
8-
use CtiDigital\Configurator\Model\Exception\ComponentException;
8+
use CtiDigital\Configurator\Exception\ComponentException;
99

1010
class TaxRates extends CsvComponentAbstract
1111
{

Component/TaxRules.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Magento\Tax\Model\Calculation\RuleFactory;
88
use Magento\Tax\Model\Calculation\RateFactory;
99
use Magento\Tax\Model\ClassModelFactory;
10-
use CtiDigital\Configurator\Model\Exception\ComponentException;
10+
use CtiDigital\Configurator\Exception\ComponentException;
1111

1212
class TaxRules extends CsvComponentAbstract
1313
{

Component/Websites.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use CtiDigital\Configurator\Model\LoggerInterface;
66
use Magento\Framework\ObjectManagerInterface;
7-
use CtiDigital\Configurator\Model\Exception\ComponentException;
7+
use CtiDigital\Configurator\Exception\ComponentException;
88
use Magento\Store\Model\Group;
99
use Magento\Store\Model\GroupFactory;
1010
use Magento\Store\Model\Store;

Component/Widgets.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use CtiDigital\Configurator\Model\LoggerInterface;
66
use Magento\Framework\ObjectManagerInterface;
7-
use CtiDigital\Configurator\Model\Exception\ComponentException;
7+
use CtiDigital\Configurator\Exception\ComponentException;
88
use Magento\Widget\Model\ResourceModel\Widget\Instance\Collection as WidgetCollection;
99
use Magento\Theme\Model\ResourceModel\Theme\Collection as ThemeCollection;
1010
use Magento\Store\Model\StoreFactory;

Component/YamlComponentAbstract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Magento\Framework\Webapi\Exception;
66
use Symfony\Component\Yaml\Exception\ParseException;
77
use Symfony\Component\Yaml\Yaml;
8-
use CtiDigital\Configurator\Model\Exception\ComponentException;
8+
use CtiDigital\Configurator\Exception\ComponentException;
99

1010
/**
1111
* Class YamlComponentAbstract

Console/Command/ConfiguratorCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace CtiDigital\Configurator\Console\Command;
44

55
use CtiDigital\Configurator\Model\ConfiguratorAdapterInterface;
6-
use CtiDigital\Configurator\Model\Exception\ConfiguratorAdapterException;
6+
use CtiDigital\Configurator\Exception\ConfiguratorAdapterException;
77
use Symfony\Component\Console\Command\Command;
88
use Symfony\Component\Console\Input\InputInterface;
99
use Symfony\Component\Console\Output\OutputInterface;

Console/Command/ListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use CtiDigital\Configurator\Model\ComponentList;
66
use CtiDigital\Configurator\Model\Configurator\ConfigInterface;
77
use CtiDigital\Configurator\Model\ConfiguratorAdapterInterface;
8-
use CtiDigital\Configurator\Model\Exception\ConfiguratorAdapterException;
8+
use CtiDigital\Configurator\Exception\ConfiguratorAdapterException;
99
use Magento\Framework\ObjectManagerInterface;
1010
use Symfony\Component\Console\Command\Command;
1111
use Symfony\Component\Console\Input\InputInterface;

Console/Command/RunCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use CtiDigital\Configurator\Model\Configurator\ConfigInterface;
66
use CtiDigital\Configurator\Model\ConfiguratorAdapterInterface;
7-
use CtiDigital\Configurator\Model\Exception\ConfiguratorAdapterException;
7+
use CtiDigital\Configurator\Exception\ConfiguratorAdapterException;
88
use CtiDigital\Configurator\Model\Processor;
99
use Magento\Framework\ObjectManagerInterface;
1010
use Symfony\Component\Console\Command\Command;

Model/Exception/ComponentException.php Exception/ComponentException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace CtiDigital\Configurator\Model\Exception;
2+
namespace CtiDigital\Configurator\Exception;
33

44
class ComponentException extends \RuntimeException
55
{

Model/Exception/ConfiguratorAdapterException.php Exception/ConfiguratorAdapterException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace CtiDigital\Configurator\Model\Exception;
2+
namespace CtiDigital\Configurator\Exception;
33

44
class ConfiguratorAdapterException extends \RuntimeException
55
{

Helper/Component.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CtiDigital\Configurator\Helper;
44

5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66
use Magento\Framework\App\Helper\AbstractHelper;
77
use Magento\Framework\App\Helper\Context;
88
use Magento\Store\Model\StoreManagerInterface;

Model/Processor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use CtiDigital\Configurator\Component\ComponentAbstract;
66
use CtiDigital\Configurator\Model\Configurator\ConfigInterface;
7-
use CtiDigital\Configurator\Model\Exception\ComponentException;
7+
use CtiDigital\Configurator\Exception\ComponentException;
88
use Magento\Framework\ObjectManagerInterface;
99
use Symfony\Component\Yaml\Parser;
1010
use Magento\Framework\App\State;

Test/Unit/Component/CustomersTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace CtiDigital\Configurator\Test\Unit\Component;
33

44
use CtiDigital\Configurator\Component\Customers;
5-
use CtiDigital\Configurator\Model\Exception\ComponentException;
5+
use CtiDigital\Configurator\Exception\ComponentException;
66

77
class CustomersTest extends ComponentAbstractTestCase
88
{

0 commit comments

Comments
 (0)