Skip to content

Commit

Permalink
Namespace changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Slepnev committed Sep 20, 2022
1 parent 0b77750 commit d002661
Show file tree
Hide file tree
Showing 101 changed files with 316 additions and 316 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\CollectionProvider;
namespace RunAsRoot\GoogleShoppingFeed\CollectionProvider;

use Magento\Catalog\Model\ResourceModel\Category\Collection as CategoryCollection;
use Magento\Catalog\Model\ResourceModel\Category\CollectionFactory as CategoryCollectionFactory;
Expand Down
2 changes: 1 addition & 1 deletion CollectionProvider/ProductsCollectionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\CollectionProvider;
namespace RunAsRoot\GoogleShoppingFeed\CollectionProvider;

use Magento\Catalog\Model\ResourceModel\Product\Collection as ProductCollection;
use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory as ProductCollectionFactory;
Expand Down
2 changes: 1 addition & 1 deletion CollectionProvider/SimpleProductsCollectionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\CollectionProvider;
namespace RunAsRoot\GoogleShoppingFeed\CollectionProvider;

use Magento\Catalog\Model\ResourceModel\Product\Collection as ProductCollection;
use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory as ProductCollectionFactory;
Expand Down
2 changes: 1 addition & 1 deletion ConfigProvider/AllowedCountriesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\ConfigProvider;
namespace RunAsRoot\GoogleShoppingFeed\ConfigProvider;

use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Store\Model\ScopeInterface;
Expand Down
2 changes: 1 addition & 1 deletion ConfigProvider/FeedConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\ConfigProvider;
namespace RunAsRoot\GoogleShoppingFeed\ConfigProvider;

use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Store\Model\ScopeInterface;
Expand Down
2 changes: 1 addition & 1 deletion ConfigProvider/TableRateConditionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\ConfigProvider;
namespace RunAsRoot\GoogleShoppingFeed\ConfigProvider;

use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Store\Model\ScopeInterface;
Expand Down
2 changes: 1 addition & 1 deletion ConfigProvider/UrlSuffixProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\ConfigProvider;
namespace RunAsRoot\GoogleShoppingFeed\ConfigProvider;

use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Store\Model\ScopeInterface;
Expand Down
4 changes: 2 additions & 2 deletions Console/Command/TriggerProductFeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\Console\Command;
namespace RunAsRoot\GoogleShoppingFeed\Console\Command;

use Magento\Framework\App\Area;
use Magento\Framework\App\State;
Expand All @@ -12,7 +12,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use RunAsRoot\Feed\Service\GenerateFeedService;
use RunAsRoot\GoogleShoppingFeed\Service\GenerateFeedService;

class TriggerProductFeedCommand extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion Converter/ArrayToXmlConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\Converter;
namespace RunAsRoot\GoogleShoppingFeed\Converter;

use Magento\Framework\Stdlib\DateTime\DateTime;

Expand Down
6 changes: 3 additions & 3 deletions Cron/FeedExporterCron.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\Cron;
namespace RunAsRoot\GoogleShoppingFeed\Cron;

use RunAsRoot\Feed\Exception\GenerateFeedForStoreException;
use RunAsRoot\Feed\Service\GenerateFeedService;
use RunAsRoot\GoogleShoppingFeed\Exception\GenerateFeedForStoreException;
use RunAsRoot\GoogleShoppingFeed\Service\GenerateFeedService;

class FeedExporterCron
{
Expand Down
2 changes: 1 addition & 1 deletion Data/AttributeConfigData.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\Data;
namespace RunAsRoot\GoogleShoppingFeed\Data;

use Magento\Framework\DataObject;

Expand Down
2 changes: 1 addition & 1 deletion Data/AttributeConfigDataList.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\Data;
namespace RunAsRoot\GoogleShoppingFeed\Data;

use InvalidArgumentException;

Expand Down
6 changes: 3 additions & 3 deletions DataProvider/AllowedCategoryIdsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider;

use Magento\Catalog\Model\ResourceModel\Category\CollectionFactory;
use RunAsRoot\Feed\ConfigProvider\FeedConfigProvider;
use RunAsRoot\Feed\Registry\FeedRegistry;
use RunAsRoot\GoogleShoppingFeed\ConfigProvider\FeedConfigProvider;
use RunAsRoot\GoogleShoppingFeed\Registry\FeedRegistry;

class AllowedCategoryIdsProvider
{
Expand Down
12 changes: 6 additions & 6 deletions DataProvider/AttributeHandlerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider;

use RunAsRoot\Feed\Data\AttributeConfigData;
use RunAsRoot\Feed\DataProvider\AttributeHandlers\AttributeHandlerInterface;
use RunAsRoot\Feed\Exception\HandlerIsNotSpecifiedException;
use RunAsRoot\Feed\Exception\WrongInstanceException;
use RunAsRoot\Feed\Factory\AttributeHandlerFactory;
use RunAsRoot\GoogleShoppingFeed\Data\AttributeConfigData;
use RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers\AttributeHandlerInterface;
use RunAsRoot\GoogleShoppingFeed\Exception\HandlerIsNotSpecifiedException;
use RunAsRoot\GoogleShoppingFeed\Exception\WrongInstanceException;
use RunAsRoot\GoogleShoppingFeed\Factory\AttributeHandlerFactory;

class AttributeHandlerProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use Magento\Framework\Exception\LocalizedException;
use Magento\Store\Model\StoreManagerInterface;
use RunAsRoot\Feed\DataProvider\ParentProductProvider;
use RunAsRoot\Feed\DataProvider\ProductImageUrlProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\ParentProductProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\ProductImageUrlProvider;

class AdditionalImageLinkProvider implements AttributeHandlerInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;

Expand Down
6 changes: 3 additions & 3 deletions DataProvider/AttributeHandlers/CategoryUrlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Category;
use Magento\Catalog\Model\Product;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\UrlInterface;
use RunAsRoot\Feed\CollectionProvider\LeastLevelCategoryCollectionProvider;
use RunAsRoot\Feed\DataProvider\AllowedCategoryIdsProvider;
use RunAsRoot\GoogleShoppingFeed\CollectionProvider\LeastLevelCategoryCollectionProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\AllowedCategoryIdsProvider;

use function array_intersect;
use function reset;
Expand Down
6 changes: 3 additions & 3 deletions DataProvider/AttributeHandlers/ImageLinkProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use Magento\Store\Model\StoreManagerInterface;
use RunAsRoot\Feed\DataProvider\ParentProductProvider;
use RunAsRoot\Feed\DataProvider\ProductImageUrlProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\ParentProductProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\ProductImageUrlProvider;

class ImageLinkProvider implements AttributeHandlerInterface
{
Expand Down
6 changes: 3 additions & 3 deletions DataProvider/AttributeHandlers/IsInStockProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use Magento\Framework\Exception\LocalizedException;
use Magento\InventorySales\Model\AreProductsSalable;
use Magento\InventorySalesApi\Api\Data\IsProductSalableResultInterface;
use RunAsRoot\Feed\Enum\GoogleShoppingAviabilityEnumInterface;
use RunAsRoot\Feed\Service\GetAssignedStockIdForStore;
use RunAsRoot\GoogleShoppingFeed\Enum\GoogleShoppingAviabilityEnumInterface;
use RunAsRoot\GoogleShoppingFeed\Service\GetAssignedStockIdForStore;

class IsInStockProvider implements AttributeHandlerInterface
{
Expand Down
4 changes: 2 additions & 2 deletions DataProvider/AttributeHandlers/ItemGroupIdProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use RunAsRoot\Feed\DataProvider\ParentProductProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\ParentProductProvider;

class ItemGroupIdProvider implements AttributeHandlerInterface
{
Expand Down
4 changes: 2 additions & 2 deletions DataProvider/AttributeHandlers/PriceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Exception\NoSuchEntityException;
use RunAsRoot\Feed\DataProvider\CurrencyAmountProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\CurrencyAmountProvider;

class PriceProvider implements AttributeHandlerInterface
{
Expand Down
4 changes: 2 additions & 2 deletions DataProvider/AttributeHandlers/ProductDetailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use Magento\Framework\Exception\LocalizedException;
use RunAsRoot\Feed\DataProvider\ProductAttributeLabelProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\ProductAttributeLabelProvider;

class ProductDetailProvider implements AttributeHandlerInterface
{
Expand Down
6 changes: 3 additions & 3 deletions DataProvider/AttributeHandlers/ProductUrlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use Magento\Framework\Url;
use RunAsRoot\Feed\ConfigProvider\UrlSuffixProvider;
use RunAsRoot\Feed\DataProvider\ParentProductProvider;
use RunAsRoot\GoogleShoppingFeed\ConfigProvider\UrlSuffixProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\ParentProductProvider;

class ProductUrlProvider implements AttributeHandlerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion DataProvider/AttributeHandlers/SelectAttributeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use Magento\Catalog\Model\ResourceModel\Product as ProductResource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Framework\ObjectManagerInterface;

Expand Down
10 changes: 5 additions & 5 deletions DataProvider/AttributeHandlers/ShippingProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use Magento\Framework\App\ResourceConnection;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Exception\NoSuchEntityException;
use RunAsRoot\Feed\ConfigProvider\AllowedCountriesProvider;
use RunAsRoot\Feed\ConfigProvider\TableRateConditionProvider;
use RunAsRoot\Feed\DataProvider\CurrencyAmountProvider;
use RunAsRoot\Feed\Query\ShippingTableRateQuery;
use RunAsRoot\GoogleShoppingFeed\ConfigProvider\AllowedCountriesProvider;
use RunAsRoot\GoogleShoppingFeed\ConfigProvider\TableRateConditionProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\CurrencyAmountProvider;
use RunAsRoot\GoogleShoppingFeed\Query\ShippingTableRateQuery;

class ShippingProvider implements AttributeHandlerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion DataProvider/AttributeHandlers/SimpleAttributeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Framework\ObjectManagerInterface;

Expand Down
6 changes: 3 additions & 3 deletions DataProvider/AttributeHandlers/UrlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider\AttributeHandlers;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider\AttributeHandlers;

use Magento\Catalog\Model\Product;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\Url;
use Magento\Store\Model\StoreManagerInterface;
use RunAsRoot\Feed\DataProvider\ChildProductParamsProvider;
use RunAsRoot\Feed\DataProvider\ParentProductProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\ChildProductParamsProvider;
use RunAsRoot\GoogleShoppingFeed\DataProvider\ParentProductProvider;

class UrlProvider implements AttributeHandlerInterface
{
Expand Down
10 changes: 5 additions & 5 deletions DataProvider/AttributesConfigListProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider;

use InvalidArgumentException;
use RunAsRoot\Feed\Data\AttributeConfigData;
use RunAsRoot\Feed\Data\AttributeConfigDataFactory;
use RunAsRoot\Feed\Data\AttributeConfigDataList;
use RunAsRoot\Feed\Enum\AttributesToImportEnumInterface;
use RunAsRoot\GoogleShoppingFeed\Data\AttributeConfigData;
use RunAsRoot\GoogleShoppingFeed\Data\AttributeConfigDataFactory;
use RunAsRoot\GoogleShoppingFeed\Data\AttributeConfigDataList;
use RunAsRoot\GoogleShoppingFeed\Enum\AttributesToImportEnumInterface;

class AttributesConfigListProvider
{
Expand Down
2 changes: 1 addition & 1 deletion DataProvider/ChildProductParamsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace RunAsRoot\Feed\DataProvider;
namespace RunAsRoot\GoogleShoppingFeed\DataProvider;

use Magento\Catalog\Model\Product;
use Magento\Catalog\Model\Product\Type;
Expand Down
Loading

0 comments on commit d002661

Please sign in to comment.