File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313use Doctrine \Common \Persistence \ManagerRegistry ;
1414use Ecommit \JavascriptBundle \Form \DataTransformer \Entity \EntityToArrayTransformer ;
1515use Ecommit \JavascriptBundle \Form \DataTransformer \Entity \EntityToIdTransformer ;
16- use Symfony \Bundle \FrameworkBundle \Routing \Router ;
1716use Symfony \Component \Form \AbstractType ;
1817use Symfony \Component \Form \Extension \Core \Type \HiddenType ;
1918use Symfony \Component \Form \Extension \Core \Type \TextType ;
2019use Symfony \Component \Form \FormBuilderInterface ;
2120use Symfony \Component \Form \FormInterface ;
2221use Symfony \Component \Form \FormView ;
2322use Symfony \Component \Form \ReversedTransformer ;
24- use Symfony \Component \OptionsResolver \Options ;
2523use Symfony \Component \OptionsResolver \OptionsResolver ;
24+ use Symfony \Component \Routing \RouterInterface ;
2625
2726class JqueryAutocompleteEntityAjaxType extends AbstractType
2827{
@@ -34,7 +33,7 @@ class JqueryAutocompleteEntityAjaxType extends AbstractType
3433 protected $ registry ;
3534
3635 /**
37- * @var Router
36+ * @var RouterInterface
3837 */
3938 protected $ router ;
4039
@@ -43,7 +42,7 @@ class JqueryAutocompleteEntityAjaxType extends AbstractType
4342 *
4443 * @param ManagerRegistry $em
4544 */
46- public function __construct (ManagerRegistry $ registry , Router $ router )
45+ public function __construct (ManagerRegistry $ registry , RouterInterface $ router )
4746 {
4847 $ this ->registry = $ registry ;
4948 $ this ->router = $ router ;
Original file line number Diff line number Diff line change 1515use Ecommit \JavascriptBundle \Form \DataTransformer \Entity \EntitiesToJsonTransformer ;
1616use Ecommit \JavascriptBundle \Form \DataTransformer \Entity \EntityToIdTransformer ;
1717use Ecommit \JavascriptBundle \Form \Type \EntityNormalizerTrait ;
18- use Symfony \Bundle \FrameworkBundle \Routing \Router ;
1918use Symfony \Component \Form \Extension \Core \Type \HiddenType ;
2019use Symfony \Component \Form \FormBuilderInterface ;
2120use Symfony \Component \Form \FormInterface ;
2221use Symfony \Component \Form \FormView ;
2322use Symfony \Component \Form \ReversedTransformer ;
24- use Symfony \Component \OptionsResolver \Options ;
2523use Symfony \Component \OptionsResolver \OptionsResolver ;
2624use Symfony \Component \PropertyAccess \PropertyAccess ;
25+ use Symfony \Component \Routing \RouterInterface ;
2726
2827class Select2EntityAjaxType extends AbstractSelect2Type
2928{
@@ -35,15 +34,15 @@ class Select2EntityAjaxType extends AbstractSelect2Type
3534 protected $ registry ;
3635
3736 /**
38- * @var Router
37+ * @var RouterInterface
3938 */
4039 protected $ router ;
4140
4241 /**
4342 *
4443 * @param ManagerRegistry $em
4544 */
46- public function __construct (ManagerRegistry $ registry , Router $ router )
45+ public function __construct (ManagerRegistry $ registry , RouterInterface $ router )
4746 {
4847 $ this ->registry = $ registry ;
4948 $ this ->router = $ router ;
Original file line number Diff line number Diff line change 1414use Ecommit \JavascriptBundle \Form \DataTransformer \Entity \EntitiesToJsonTransformer ;
1515use Ecommit \JavascriptBundle \Form \EventListener \FixMultiAutocomplete ;
1616use Symfony \Bridge \Doctrine \ManagerRegistry ;
17- use Symfony \Bundle \FrameworkBundle \Routing \Router ;
1817use Symfony \Component \Form \AbstractType ;
1918use Symfony \Component \Form \FormBuilderInterface ;
2019use Symfony \Component \Form \FormInterface ;
2120use Symfony \Component \Form \FormView ;
2221use Symfony \Component \Form \ReversedTransformer ;
23- use Symfony \Component \OptionsResolver \Options ;
2422use Symfony \Component \OptionsResolver \OptionsResolver ;
23+ use Symfony \Component \Routing \RouterInterface ;
2524
2625class TokenInputEntitiesAjaxType extends AbstractType
2726{
@@ -33,15 +32,15 @@ class TokenInputEntitiesAjaxType extends AbstractType
3332 protected $ registry ;
3433
3534 /**
36- * @var Router
35+ * @var RouterInterface
3736 */
3837 protected $ router ;
3938
4039 /**
4140 * Constructor
4241 * @param ManagerRegistry $registry
4342 */
44- public function __construct (ManagerRegistry $ registry , Router $ router )
43+ public function __construct (ManagerRegistry $ registry , RouterInterface $ router )
4544 {
4645 $ this ->registry = $ registry ;
4746 $ this ->router = $ router ;
You can’t perform that action at this time.
0 commit comments