1 | <?php |
||
43 | class MediaBlockService extends AbstractBlockService |
||
44 | { |
||
45 | /** |
||
46 | * @var BaseMediaAdmin |
||
47 | */ |
||
48 | protected $mediaAdmin; |
||
49 | |||
50 | /** |
||
51 | * @var ManagerInterface |
||
52 | */ |
||
53 | protected $mediaManager; |
||
54 | |||
55 | /** |
||
56 | * @var ContainerInterface |
||
57 | */ |
||
58 | private $container; |
||
59 | |||
60 | /** |
||
61 | * NEXT_MAJOR: Remove `$templating` argument. |
||
62 | * |
||
63 | * @param Environment|string $twigOrName |
||
64 | */ |
||
65 | public function __construct( |
||
76 | |||
77 | /** |
||
78 | * @return Pool |
||
79 | */ |
||
80 | public function getMediaPool() |
||
84 | |||
85 | /** |
||
86 | * @return BaseMediaAdmin |
||
87 | */ |
||
88 | public function getMediaAdmin() |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function configureSettings(OptionsResolver $resolver): void |
||
114 | |||
115 | /** |
||
116 | * NEXT_MAJOR: Remove this method. |
||
117 | * |
||
118 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use |
||
119 | * `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead. |
||
120 | */ |
||
121 | public function buildEditForm(FormMapper $formMapper, BlockInterface $block): void |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | public function execute(BlockContextInterface $blockContext, ?Response $response = null) |
||
179 | |||
180 | /** |
||
181 | * {@inheritdoc} |
||
182 | */ |
||
183 | public function load(BlockInterface $block): void |
||
193 | |||
194 | /** |
||
195 | * {@inheritdoc} |
||
196 | */ |
||
197 | public function prePersist(BlockInterface $block): void |
||
201 | |||
202 | /** |
||
203 | * {@inheritdoc} |
||
204 | */ |
||
205 | public function preUpdate(BlockInterface $block): void |
||
209 | |||
210 | /** |
||
211 | * NEXT_MAJOR: Remove this method. |
||
212 | * |
||
213 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use |
||
214 | * `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead. |
||
215 | */ |
||
216 | public function getBlockMetadata($code = null) |
||
222 | |||
223 | /** |
||
224 | * NEXT_MAJOR: Remove this method. |
||
225 | * |
||
226 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use |
||
227 | * `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead. |
||
228 | */ |
||
229 | public function buildCreateForm(FormMapper $formMapper, BlockInterface $block) |
||
233 | |||
234 | /** |
||
235 | * NEXT_MAJOR: Remove this method. |
||
236 | * |
||
237 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
238 | */ |
||
239 | public function postPersist(BlockInterface $block) |
||
242 | |||
243 | /** |
||
244 | * NEXT_MAJOR: Remove this method. |
||
245 | * |
||
246 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
247 | */ |
||
248 | public function postUpdate(BlockInterface $block) |
||
251 | |||
252 | /** |
||
253 | * NEXT_MAJOR: Remove this method. |
||
254 | * |
||
255 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
256 | */ |
||
257 | public function preRemove(BlockInterface $block) |
||
260 | |||
261 | /** |
||
262 | * NEXT_MAJOR: Remove this method. |
||
263 | * |
||
264 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. |
||
265 | */ |
||
266 | public function postRemove(BlockInterface $block) |
||
269 | |||
270 | /** |
||
271 | * NEXT_MAJOR: Remove this method. |
||
272 | * |
||
273 | * @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use |
||
274 | * `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead. |
||
275 | */ |
||
276 | public function validateBlock(ErrorElement $errorElement, BlockInterface $block) |
||
279 | |||
280 | /** |
||
281 | * @return array |
||
282 | */ |
||
283 | protected function getFormatChoices(?MediaInterface $media = null) |
||
299 | |||
300 | /** |
||
301 | * @return FormBuilder |
||
302 | */ |
||
303 | protected function getMediaBuilder(FormMapper $formMapper) |
||
324 | } |
||
325 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.