Skip to content

Commit

Permalink
[Doc] Fix place auutocomplete components restriction example
Browse files Browse the repository at this point in the history
  • Loading branch information
GeLoLabs committed May 21, 2017
1 parent e14191b commit 3410476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/doc/place_autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ $builder->add('field', PlaceAutocompleteType::class, [
If you want to restrict the autocomplete to components, you can use:

``` php
use Ivory\GoogleMap\Place\AutocompleteType;
use Ivory\GoogleMap\Place\AutocompleteComponentType;
use Ivory\GoogleMapBundle\Form\Type\PlaceAutocompleteType;

$builder->add('field', PlaceAutocompleteType::class, [
AutocompleteComponentType::COUNTRY => 'fr'
'components' => [AutocompleteComponentType::COUNTRY => 'fr'],
]);
```

Expand Down

0 comments on commit 3410476

Please sign in to comment.