Skip to content

Commit 57b4d51

Browse files
committed
clean
1 parent c6842bf commit 57b4d51

1 file changed

Lines changed: 1 addition & 26 deletions

File tree

tests/Fixtures/TestBundle/Entity/ParameterOnProperties.php

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,14 @@
1717
use ApiPlatform\Metadata\ApiResource;
1818
use ApiPlatform\Metadata\Get;
1919
use ApiPlatform\Metadata\GetCollection;
20-
use ApiPlatform\Metadata\Parameters;
2120
use ApiPlatform\Metadata\QueryParameter;
2221
use Doctrine\ORM\Mapping as ORM;
2322

2423
#[ORM\Entity]
2524
#[ApiResource(
2625
uriTemplate: 'parameter_on_properties',
27-
// normalizationContext: ['hydra_prefix' => false],
28-
// provider: [self::class, 'provide'],
2926
operations: [
30-
new GetCollection(
31-
// parameters: [
32-
// new QueryParameter(
33-
// key: 'qname',
34-
// filter: new PartialSearchFilter(),
35-
// property: 'name',
36-
// ),
37-
// // new QueryParameter(
38-
// // key: 'de',
39-
// // filter: new PartialSearchFilter(),
40-
// // property: 'description',
41-
// // ),
42-
// ],
43-
),
27+
new GetCollection(),
4428
new Get(),
4529
]
4630
)]
@@ -92,13 +76,4 @@ public function setDescription(?string $description): self
9276

9377
return $this;
9478
}
95-
96-
// public static function provide(): array
97-
// {
98-
// return [
99-
// new self('foo', 'bar'),
100-
// new self('baz', 'qux'),
101-
// new self('qoox', 'corge'),
102-
// ];
103-
// }
10479
}

0 commit comments

Comments
 (0)