for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* Created by solutionDrive GmbH
*
* @copyright 2018 solutionDrive GmbH
*/
namespace solutionDrive\SyliusProductBundlesPlugin\Fixture;
use Sylius\Bundle\CoreBundle\Fixture\AbstractResourceFixture;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
class ProductBundleFixture extends AbstractResourceFixture
{
public function getName(): string
return 'product_bundle';
}
protected function configureResourceNode(ArrayNodeDefinition $resourceNode): void
$resourceNode
->children()
->scalarNode('productCode')->cannotBeEmpty()->end()
->arrayNode('slots')
->prototype('array')
->scalarNode('name')->cannotBeEmpty()->end()
->arrayNode('productCodes')->prototype('scalar')->end()->end()
->arrayNode('options')->prototype('scalar')->end()->end()
->end()
->end();