|
11 | 11 |
|
12 | 12 | namespace Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler;
|
13 | 13 |
|
14 |
| -use Symfony\Component\DependencyInjection\Argument\IteratorArgument; |
15 |
| -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
16 |
| -use Symfony\Component\DependencyInjection\Compiler\PriorityTaggedServiceTrait; |
17 |
| -use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 14 | +@trigger_error(sprintf('The %s class is deprecated since version 3.3 and will be removed in 4.0. Use Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass instead.', PropertyInfoPass::class), E_USER_DEPRECATED); |
| 15 | + |
| 16 | +use Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass as BasePropertyInfoPass; |
18 | 17 |
|
19 | 18 | /**
|
20 | 19 | * Adds extractors to the property_info service.
|
21 | 20 | *
|
22 | 21 | * @author Kévin Dunglas <dunglas@gmail.com>
|
| 22 | + * |
| 23 | + * @deprecated since version 3.3, to be removed in 4.0. Use {@link BasePropertyInfoPass instead}. |
23 | 24 | */
|
24 |
| -class PropertyInfoPass implements CompilerPassInterface |
| 25 | +class PropertyInfoPass extends BasePropertyInfoPass |
25 | 26 | {
|
26 |
| - use PriorityTaggedServiceTrait; |
27 |
| - |
28 |
| - /** |
29 |
| - * {@inheritdoc} |
30 |
| - */ |
31 |
| - public function process(ContainerBuilder $container) |
32 |
| - { |
33 |
| - if (!$container->hasDefinition('property_info')) { |
34 |
| - return; |
35 |
| - } |
36 |
| - |
37 |
| - $definition = $container->getDefinition('property_info'); |
38 |
| - |
39 |
| - $listExtractors = $this->findAndSortTaggedServices('property_info.list_extractor', $container); |
40 |
| - $definition->replaceArgument(0, new IteratorArgument($listExtractors)); |
41 |
| - |
42 |
| - $typeExtractors = $this->findAndSortTaggedServices('property_info.type_extractor', $container); |
43 |
| - $definition->replaceArgument(1, new IteratorArgument($typeExtractors)); |
44 |
| - |
45 |
| - $descriptionExtractors = $this->findAndSortTaggedServices('property_info.description_extractor', $container); |
46 |
| - $definition->replaceArgument(2, new IteratorArgument($descriptionExtractors)); |
47 |
| - |
48 |
| - $accessExtractors = $this->findAndSortTaggedServices('property_info.access_extractor', $container); |
49 |
| - $definition->replaceArgument(3, new IteratorArgument($accessExtractors)); |
50 |
| - } |
51 | 27 | }
|
0 commit comments