@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * |
| 161 | 161 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
| 162 | 162 | * |
| 163 | - * @param $id |
|
| 163 | + * @param integer $id |
|
| 164 | 164 | * |
| 165 | 165 | * @return GalleryInterface |
| 166 | 166 | */ |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * |
| 186 | 186 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
| 187 | 187 | * |
| 188 | - * @param $id |
|
| 188 | + * @param integer $id |
|
| 189 | 189 | * |
| 190 | 190 | * @return MediaInterface[] |
| 191 | 191 | */ |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | * |
| 218 | 218 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
| 219 | 219 | * |
| 220 | - * @param $id |
|
| 220 | + * @param integer $id |
|
| 221 | 221 | * |
| 222 | 222 | * @return GalleryItemInterface[] |
| 223 | 223 | */ |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | * |
| 340 | 340 | * @throws NotFoundHttpException |
| 341 | 341 | * |
| 342 | - * @return GalleryInterface |
|
| 342 | + * @return FormInterface |
|
| 343 | 343 | */ |
| 344 | 344 | public function putGalleryMediaGalleryItemAction($galleryId, $mediaId, Request $request) |
| 345 | 345 | { |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | /** |
| 501 | 501 | * Retrieves media with id $id or throws an exception if it doesn't exist. |
| 502 | 502 | * |
| 503 | - * @param $id |
|
| 503 | + * @param integer $id |
|
| 504 | 504 | * |
| 505 | 505 | * @throws NotFoundHttpException |
| 506 | 506 | * |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | * Write a message to the output. |
| 131 | 131 | * |
| 132 | 132 | * @param string $message |
| 133 | - * @param bool|true $newLine |
|
| 133 | + * @param boolean $newLine |
|
| 134 | 134 | */ |
| 135 | 135 | protected function log($message, $newLine = true): void |
| 136 | 136 | { |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | - * @param mixed $media |
|
| 197 | + * @param MediaInterface $media |
|
| 198 | 198 | */ |
| 199 | 199 | private function getMedia($media): ?MediaInterface |
| 200 | 200 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** |
| 62 | 62 | * NEXT_MAJOR: Remove `$templating` argument. |
| 63 | 63 | * |
| 64 | - * @param Environment|string $twigOrName |
|
| 64 | + * @param Environment $twigOrName |
|
| 65 | 65 | */ |
| 66 | 66 | public function __construct($twigOrName, ?EngineInterface $templating, ContainerInterface $container, ManagerInterface $galleryManager) |
| 67 | 67 | { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | /** |
| 48 | 48 | * NEXT_MAJOR: Remove `$templating` argument. |
| 49 | 49 | * |
| 50 | - * @param Environment|string $twigOrName |
|
| 50 | + * @param Environment $twigOrName |
|
| 51 | 51 | */ |
| 52 | 52 | public function __construct($twigOrName, ?EngineInterface $templating, GalleryManagerInterface $galleryManager, Pool $pool) |
| 53 | 53 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | /** |
| 60 | 60 | * NEXT_MAJOR: Remove `$templating` argument. |
| 61 | 61 | * |
| 62 | - * @param Environment|string $twigOrName |
|
| 62 | + * @param Environment $twigOrName |
|
| 63 | 63 | */ |
| 64 | 64 | public function __construct( |
| 65 | 65 | $twigOrName, |
@@ -30,10 +30,19 @@ |
||
| 30 | 30 | { |
| 31 | 31 | public function getTitle(): string; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @return string|null |
|
| 35 | + */ |
|
| 33 | 36 | public function getDescription(): ?string; |
| 34 | 37 | |
| 38 | + /** |
|
| 39 | + * @return string |
|
| 40 | + */ |
|
| 35 | 41 | public function getImage(): ?string; |
| 36 | 42 | |
| 43 | + /** |
|
| 44 | + * @return string|null |
|
| 45 | + */ |
|
| 37 | 46 | public function getDomain(): ?string; |
| 38 | 47 | |
| 39 | 48 | /** |
@@ -42,6 +42,9 @@ |
||
| 42 | 42 | return parent::createAction(); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string|null $view |
|
| 47 | + */ |
|
| 45 | 48 | public function render($view, array $parameters = [], ?Response $response = null) |
| 46 | 49 | { |
| 47 | 50 | $parameters['media_pool'] = $this->get('sonata.media.pool'); |