Created
March 25, 2014 10:53
-
-
Save florinutz/9759260 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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