PHP Class Sylius\Bundle\CoreBundle\Fixture\Factory\TaxonExampleFactory

Author: Kamil Kokot ([email protected])
Inheritance: implements Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Component\Resource\Factory\FactoryInterface $taxonFactory, Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface $taxonRepository, Sylius\Component\Resource\Repository\RepositoryInterface $localeRepository, Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface $taxonSlugGenerator )
create ( array $options = [] )

Protected Methods

Method Description
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )

Private Methods

Method Description
getLocales ( ) : array

Method Details

__construct() public method

public __construct ( Sylius\Component\Resource\Factory\FactoryInterface $taxonFactory, Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface $taxonRepository, Sylius\Component\Resource\Repository\RepositoryInterface $localeRepository, Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface $taxonSlugGenerator )
$taxonFactory Sylius\Component\Resource\Factory\FactoryInterface
$taxonRepository Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface
$localeRepository Sylius\Component\Resource\Repository\RepositoryInterface
$taxonSlugGenerator Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface

configureOptions() protected method

protected configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver

create() public method

public create ( array $options = [] )
$options array