- $resolver->setDefaults(['donate' => true, 'link' => true, 'phone' => true, 'profile' => true]);
-
- //Add extra donate option
- $resolver->setAllowedTypes('donate', 'boolean');
-
- //Add extra link option
- $resolver->setAllowedTypes('link', 'boolean');
+ $resolver->setDefaults(
+ [
+ 'city' => true,
+ 'country' => true,
+ 'country_class' => 'Rapsys\AirBundle\Entity\Country',
+ 'country_default' => null,
+ 'country_favorites' => [],
+ 'dance' => false,
+ 'dance_choices' => [],
+ #'dance_default' => null,
+ 'dance_favorites' => [],
+ 'phone' => true,
+ 'pseudonym' => true,
+ 'subscription' => false,
+ 'subscription_choices' => [],
+ #'subscription_default' => null,
+ 'subscription_favorites' => [],
+ 'zipcode' => true
+ ]
+ );
+
+ //Add extra city option
+ $resolver->setAllowedTypes('city', 'boolean');
+
+ //Add extra country option
+ $resolver->setAllowedTypes('country', 'boolean');
+
+ //Add country class
+ $resolver->setAllowedTypes('country_class', 'string');
+
+ //Add country default
+ $resolver->setAllowedTypes('country_default', [Country::class, 'null']);
+
+ //Add country favorites
+ $resolver->setAllowedTypes('country_favorites', 'array');
+
+ //Add extra dance option
+ $resolver->setAllowedTypes('dance', 'boolean');
+
+ //Add dance choices
+ $resolver->setAllowedTypes('dance_choices', 'array');
+
+ //Add dance default
+ #$resolver->setAllowedTypes('dance_default', 'integer');
+
+ //Add dance favorites
+ $resolver->setAllowedTypes('dance_favorites', 'array');