Open lukasmat opened 3 years ago
How to set header X-AUTH-USER info from bundle?
->add('test', Select2EntityType::class, [ 'multiple' => false, 'remote_route' => 'api_users_get_collection', 'remote_params' => [ 'headers' => [ 'X-AUTH-USER' => 'test', 'X-Auth-Token' => 'test', ] ], // static route parameters for request->query 'class' => Test::class, 'primary_key' => 'id', 'text_property' => 'name', 'minimum_input_length' => 2, 'page_limit' => 10, 'allow_clear' => true, 'delay' => 250, 'cache' => true, 'cache_timeout' => 60000, // if 'cache' is true 'language' => 'en', 'placeholder' => 'Select a test', ])
How to set header X-AUTH-USER info from bundle?