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

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

Public Methods

Method Description
__construct ( Sylius\Component\Resource\Factory\FactoryInterface $shippingMethodFactory, Sylius\Component\Resource\Repository\RepositoryInterface $zoneRepository, Sylius\Component\Resource\Repository\RepositoryInterface $shippingCategoryRepository, Sylius\Component\Resource\Repository\RepositoryInterface $localeRepository, Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository )
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 $shippingMethodFactory, Sylius\Component\Resource\Repository\RepositoryInterface $zoneRepository, Sylius\Component\Resource\Repository\RepositoryInterface $shippingCategoryRepository, Sylius\Component\Resource\Repository\RepositoryInterface $localeRepository, Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository )
$shippingMethodFactory Sylius\Component\Resource\Factory\FactoryInterface
$zoneRepository Sylius\Component\Resource\Repository\RepositoryInterface
$shippingCategoryRepository Sylius\Component\Resource\Repository\RepositoryInterface
$localeRepository Sylius\Component\Resource\Repository\RepositoryInterface
$channelRepository Sylius\Component\Channel\Repository\ChannelRepositoryInterface

configureOptions() protected method

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

create() public method

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