for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Webcook security bundle.
*
* See LICENSE file in the root of the bundle. Webcook
*/
namespace Webcook\Cms\SecurityBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
* Resources collection form.
class ResourcesType extends AbstractType
{
* {@inheritdoc}
* @param FormBuilderInterface $builder
* @param array $options
public function buildForm(FormBuilderInterface $builder, array $options)
$builder->add('roleResources', CollectionType::class, array('entry_type' => ResourceType::class));
}
* @param OptionsResolver $resolver
public function configureOptions(OptionsResolver $resolver)
$resolver->setDefaults(array(
'csrf_protection' => false,
));
* @return string
public function getName()
return 'resources';