File tree Expand file tree Collapse file tree
tests/Fixtures/TestBundle/Entity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717use ApiPlatform \Metadata \ApiResource ;
1818use ApiPlatform \Metadata \Get ;
1919use ApiPlatform \Metadata \GetCollection ;
20- use ApiPlatform \Metadata \Parameters ;
2120use ApiPlatform \Metadata \QueryParameter ;
2221use 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}
You can’t perform that action at this time.
0 commit comments