| Current Path : /var/www/www.indacotrentino.com/www/app/code/Amasty/ExportCore/Plugin/ |
| 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());
}
}
}