diff --git a/.php_cs.dist b/.php_cs.dist index 53bdfdc22d1a52c97cc90f42e4dbe1d3d47a5d4d..9d7d3ab411bdb31add76af8d6cd47741323a3a81 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -11,6 +11,8 @@ return PhpCsFixer\Config::create() '@PHP70Migration' => true, '@PHP71Migration' => true, '@PHP73Migration' => true, + '@DoctrineAnnotation' => true, + 'doctrine_annotation_array_assignment' => ['operator' => '='], 'array_syntax' => ['syntax' => 'short'], 'yoda_style' => false, 'strict_comparison' => true, diff --git a/src/Entity/Place.php b/src/Entity/Place.php index 95506c5afcf4c7920b07b27344091c78b77c3552..8f981fdf0be4ac1e88a1103138c5e43c50a7affb 100644 --- a/src/Entity/Place.php +++ b/src/Entity/Place.php @@ -10,11 +10,23 @@ use Symfony\Component\Serializer\Annotation\Groups; /** * @ApiResource( - * collectionOperations={"get"}, - * itemOperations={"get", "put", "delete"}, + * collectionOperations={ + * "get" + * }, + * itemOperations={ + * "get", + * "put", + * "delete" + * }, * iri="https://schema.org/Place", - * normalizationContext={"groups"={"Place:output"}, "jsonld_embed_context"=true}, - * denormalizationContext={"groups"={"Place:input"}, "jsonld_embed_context"=true} + * normalizationContext={ + * "groups" = {"Place:output"}, + * "jsonld_embed_context" = true + * }, + * denormalizationContext={ + * "groups" = {"Place:input"}, + * "jsonld_embed_context" = true + * } * ) */ class Place