1 | <?php |
||
36 | class GalleryListBlockService extends AbstractBlockService |
||
37 | { |
||
38 | /** |
||
39 | * @var GalleryManagerInterface |
||
40 | */ |
||
41 | protected $galleryManager; |
||
42 | |||
43 | /** |
||
44 | * @var Pool |
||
45 | */ |
||
46 | protected $pool; |
||
47 | |||
48 | /** |
||
49 | * NEXT_MAJOR: Remove `$templating` argument. |
||
50 | * |
||
51 | * @param Environment|string $twigOrName |
||
52 | */ |
||
53 | public function __construct($twigOrName, ?EngineInterface $templating, GalleryManagerInterface $galleryManager, Pool $pool) |
||
60 | |||
61 | /** |
||
62 | * NEXT_MAJOR: Remove this method. |
||
63 | * |
||
64 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use |
||
65 | * `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead. |
||
66 | */ |
||
67 | public function buildEditForm(FormMapper $formMapper, BlockInterface $block): void |
||
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | public function execute(BlockContextInterface $blockContext, ?Response $response = null) |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | public function configureSettings(OptionsResolver $resolver): void |
||
176 | |||
177 | /** |
||
178 | * NEXT_MAJOR: Remove this method. |
||
179 | * |
||
180 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use |
||
181 | * `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead. |
||
182 | */ |
||
183 | public function getBlockMetadata($code = null) |
||
189 | |||
190 | /** |
||
191 | * NEXT_MAJOR: Remove this method. |
||
192 | * |
||
193 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use |
||
194 | * `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead. |
||
195 | */ |
||
196 | public function buildCreateForm(FormMapper $formMapper, BlockInterface $block) |
||
200 | |||
201 | /** |
||
202 | * NEXT_MAJOR: Remove this method. |
||
203 | * |
||
204 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
205 | */ |
||
206 | public function prePersist(BlockInterface $block) |
||
209 | |||
210 | /** |
||
211 | * NEXT_MAJOR: Remove this method. |
||
212 | * |
||
213 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
214 | */ |
||
215 | public function postPersist(BlockInterface $block) |
||
218 | |||
219 | /** |
||
220 | * NEXT_MAJOR: Remove this method. |
||
221 | * |
||
222 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
223 | */ |
||
224 | public function preUpdate(BlockInterface $block) |
||
227 | |||
228 | /** |
||
229 | * NEXT_MAJOR: Remove this method. |
||
230 | * |
||
231 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
232 | */ |
||
233 | public function postUpdate(BlockInterface $block) |
||
236 | |||
237 | /** |
||
238 | * NEXT_MAJOR: Remove this method. |
||
239 | * |
||
240 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
241 | */ |
||
242 | public function preRemove(BlockInterface $block) |
||
245 | |||
246 | /** |
||
247 | * NEXT_MAJOR: Remove this method. |
||
248 | * |
||
249 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
250 | */ |
||
251 | public function postRemove(BlockInterface $block) |
||
254 | |||
255 | /** |
||
256 | * NEXT_MAJOR: Remove this method. |
||
257 | * |
||
258 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use |
||
259 | * `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead. |
||
260 | */ |
||
261 | public function validateBlock(ErrorElement $errorElement, BlockInterface $block) |
||
264 | } |
||
265 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.