File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 44use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
55use Iphp \FileStoreBundle \DataStorage \DataStorageInterface ;
66use Iphp \FileStoreBundle \Form \DataTransformer \FileDataTransformer ;
7- use Symfony \Component \Form \Extension \Core \Type \CheckboxType ;
8- use Symfony \Component \Form \Extension \Core \Type \FileType ;
97use Symfony \Component \Form \FormEvents ;
108use Symfony \Component \Form \FormEvent ;
119use Iphp \FileStoreBundle \Mapping \PropertyMappingFactory ;
@@ -65,10 +63,10 @@ public function preSet(FormEvent $event)
6563
6664 if ($ mapping ) {
6765 if ($ propertyName == $ mapping ->getFileUploadPropertyName ())
68- $ form ->add ('file ' , FileType::class, array ( 'required ' => false ) );
66+ $ form ->add ('file ' , \ Symfony \ Component \ Form \ Extension \ Core \ Type \ FileType::class, [ 'required ' => false ] );
6967
7068 if ($ propertyName == $ mapping ->getFileDataPropertyName ())
71- $ form ->add ('delete ' , CheckboxType::class, array ( 'required ' => false ) );
69+ $ form ->add ('delete ' , \ Symfony \ Component \ Form \ Extension \ Core \ Type \ CheckboxType::class, [ 'required ' => false ] );
7270 }
7371 }
7472
@@ -93,4 +91,4 @@ public function preBind(FormEvent $event)
9391 }
9492
9593
96- }
94+ }
You can’t perform that action at this time.
0 commit comments