for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ApiBundle\Fixture;
use Sylius\Bundle\CoreBundle\Fixture\AbstractResourceFixture;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
/**
* @author Łukasz Chruściel <[email protected]>
class ApiClientFixture extends AbstractResourceFixture
{
* {@inheritdoc}
public function getName()
return 'api_client';
}
protected function configureResourceNode(ArrayNodeDefinition $resourceNode)
$resourceNode
->children()
->scalarNode('random_id')->cannotBeEmpty()->end()
->scalarNode('secret')->cannotBeEmpty()->end()
->arrayNode('allowed_grant_types')->prototype('scalar')->cannotBeEmpty()->defaultValue([])->end()
;