1 | <?php |
||
22 | class SeoMetadataController extends AbstractController |
||
23 | { |
||
24 | private $seoMetadataFactory; |
||
25 | |||
26 | private $seoMetadataRepository; |
||
27 | |||
28 | private $eventDispatcher; |
||
29 | |||
30 | public function __construct( |
||
39 | |||
40 | /** |
||
41 | * @Operation( |
||
42 | * tags={"seo"}, |
||
43 | * summary="Change SEO metadata entry", |
||
44 | * @SWG\Parameter( |
||
45 | * name="body", |
||
46 | * in="body", |
||
47 | * @SWG\Schema( |
||
48 | * ref=@Model(type=SeoMetadataType::class) |
||
49 | * ) |
||
50 | * ), |
||
51 | * @SWG\Response( |
||
52 | * response="200", |
||
53 | * description="Returned on success.", |
||
54 | * @Model(type=\SWP\Bundle\ContentBundle\Model\ArticleSeoMetadata::class, groups={"api"}) |
||
55 | * ), |
||
56 | * @SWG\Response( |
||
57 | * response="400", |
||
58 | * description="Returned when form have errors" |
||
59 | * ) |
||
60 | * ) |
||
61 | * |
||
62 | * @Route("/api/{version}/packages/seo/{packageGuid}", options={"expose"=true}, defaults={"version"="v2"}, methods={"PUT"}, name="swp_api_core_seo_metadata_put") |
||
63 | * |
||
64 | * @param Request $request |
||
65 | * |
||
66 | * @return SingleResourceResponse |
||
67 | */ |
||
68 | public function put(Request $request, string $packageGuid): SingleResourceResponse |
||
90 | |||
91 | /** |
||
92 | * @Operation( |
||
93 | * tags={"seo"}, |
||
94 | * summary="Gets SEO metadata entry", |
||
95 | * @SWG\Response( |
||
96 | * response="200", |
||
97 | * description="Returned on success.", |
||
98 | * @Model(type=\SWP\Bundle\ContentBundle\Model\ArticleSeoMetadata::class, groups={"api"}) |
||
99 | * ), |
||
100 | * @SWG\Response( |
||
101 | * response="400", |
||
102 | * description="Returned when form have errors" |
||
103 | * ) |
||
104 | * ) |
||
105 | * |
||
106 | * @Route("/api/{version}/packages/seo/{packageGuid}", options={"expose"=true}, defaults={"version"="v2"}, methods={"GET"}, name="swp_api_core_seo_metadata_get") |
||
107 | * |
||
108 | * @return SingleResourceResponse |
||
109 | */ |
||
110 | public function getAction(string $packageGuid): SingleResourceResponse |
||
121 | } |
||
122 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.