CategoryImporter - trickscompany/sylius-odoo-product-plugin GitHub Wiki
- Full name:
\Fabit\SyliusOdooProductPlugin\Importer\CategoryImporter
- This class is marked as final and can't be subclassed
- This class implements:
\Fabit\SyliusOdooProductPlugin\Importer\CategoryImporterInterface
- This class is a Final class
private \Sylius\Component\Taxonomy\Factory\TaxonFactoryInterface $taxonFactory
private \Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface $taxonRepository
private \Doctrine\ORM\EntityManagerInterface $entityManager
private \Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface $taxonSlugGenerator
public \Psr\Log\LoggerInterface $logger
public __construct(\Sylius\Component\Taxonomy\Factory\TaxonFactoryInterface $taxonFactory, \Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface $taxonRepository, \Doctrine\ORM\EntityManagerInterface $entityManager, \Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface $taxonSlugGenerator, \Psr\Log\LoggerInterface $logger): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$taxonFactory |
\Sylius\Component\Taxonomy\Factory\TaxonFactoryInterface | |
$taxonRepository |
\Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface | |
$entityManager |
\Doctrine\ORM\EntityManagerInterface | |
$taxonSlugGenerator |
\Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface | |
$logger |
\Psr\Log\LoggerInterface |
public import(array $data, string $locale): void
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
array | |
$locale |
string |
private createTaxon(mixed $code, mixed $name, mixed $locale): \Sylius\Component\Core\Model\TaxonInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$code |
mixed | |
$name |
mixed | |
$locale |
mixed |
private debug(string $message, array $data = [], bool $isEcho = false): void
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string | |
$data |
array | |
$isEcho |
bool |
Automatically generated on 2024-02-03