Skip to content

Instantly share code, notes, and snippets.

@florinutz
Created March 25, 2014 10:53
Show Gist options
  • Save florinutz/9759260 to your computer and use it in GitHub Desktop.
Save florinutz/9759260 to your computer and use it in GitHub Desktop.
<?php
// florin 3/13/14 12:12 PM
namespace Wyzbiz\Bundle\MainBundle\Form\Type;
use Sonata\AdminBundle\Form\DataTransformer\ModelsToArrayTransformer;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ModelTypeList extends AbstractType implements ContainerAwareInterface
{
/** @var ContainerInterface */
private $container;
public function getParent()
{
return 'sonata_type_model_list';
}
public function getName()
{
return 'wyz_model_list';
}
public function setContainer(ContainerInterface $container = null)
{
$this->container = $container;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment