@@ -5,15 +5,10 @@ |
||
| 5 | 5 | use Alpixel\Bundle\MediaBundle\Entity\Media; |
| 6 | 6 | use Doctrine\Common\Collections\Collection; |
| 7 | 7 | use Doctrine\ORM\EntityManager; |
| 8 | -use Doctrine\ORM\NoResultException; |
|
| 9 | 8 | use Doctrine\ORM\QueryBuilder; |
| 10 | 9 | use Symfony\Component\Form\DataTransformerInterface; |
| 11 | -use Symfony\Component\Form\Exception\FormException; |
|
| 12 | 10 | use Symfony\Component\Form\Exception\TransformationFailedException; |
| 13 | 11 | use Symfony\Component\Form\Exception\UnexpectedTypeException; |
| 14 | -use Symfony\Component\Form\FormError; |
|
| 15 | -use Symfony\Component\Form\FormInterface; |
|
| 16 | -use Symfony\Component\PropertyAccess\PropertyAccessor; |
|
| 17 | 12 | |
| 18 | 13 | /** |
| 19 | 14 | * Data transformation class |
@@ -4,11 +4,7 @@ discard block |
||
| 4 | 4 | use Alpixel\Bundle\MediaBundle\DataTransformer\EntityToIdTransformer; |
| 5 | 5 | use Alpixel\Bundle\MediaBundle\Entity\Media; |
| 6 | 6 | use Alpixel\Bundle\MediaBundle\EventListener\MediaEvent; |
| 7 | -use Alpixel\Bundle\MediaBundle\EventListener\MediaListener; |
|
| 8 | 7 | use Symfony\Bridge\Doctrine\RegistryInterface; |
| 9 | -use Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher; |
|
| 10 | -use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher; |
|
| 11 | -use Symfony\Component\EventDispatcher\EventDispatcher; |
|
| 12 | 8 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 13 | 9 | use Symfony\Component\Form\AbstractType; |
| 14 | 10 | use Symfony\Component\Form\FormBuilderInterface; |
@@ -16,7 +12,6 @@ discard block |
||
| 16 | 12 | use Symfony\Component\Form\FormEvents; |
| 17 | 13 | use Symfony\Component\Form\FormInterface; |
| 18 | 14 | use Symfony\Component\Form\FormView; |
| 19 | -use Symfony\Component\HttpKernel\Kernel; |
|
| 20 | 15 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
| 21 | 16 | |
| 22 | 17 | class MediaType extends AbstractType |