Your IP : 216.73.217.13


Current Path : /var/www/www.indacotrentino.com/www/app/code/Amasty/ExportCore/Plugin/
Upload File :
Current File : /var/www/www.indacotrentino.com/www/app/code/Amasty/ExportCore/Plugin/GenerateFactories.php

<?php

declare(strict_types=1);

/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Export Core for Magento 2 (System)
 */

namespace Amasty\ExportCore\Plugin;

use Amasty\ExportCore\Export\Config\EntitySource;

class GenerateFactories
{
    /**
     * @var EntitySource\Xml
     */
    private $xmlEntitySource;

    public function __construct(EntitySource\Xml $xmlEntitySource)
    {
        $this->xmlEntitySource = $xmlEntitySource;
    }

    public function afterDoOperation($subject): void
    {
        foreach ($this->xmlEntitySource->get() as $entityConfig) {
            class_exists($entityConfig->getCollectionFactory()->getName());
        }
    }
}