|
13 | 13 |
|
14 | 14 | use Doctrine\Common\Annotations\Reader;
|
15 | 15 | use Symfony\Bridge\Monolog\Processor\DebugProcessor;
|
| 16 | +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
| 17 | +use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
16 | 18 | use Symfony\Component\Cache\Adapter\AdapterInterface;
|
17 | 19 | use Symfony\Component\Cache\Adapter\ArrayAdapter;
|
18 | 20 | use Symfony\Component\Config\FileLocator;
|
19 | 21 | use Symfony\Component\Config\Loader\LoaderInterface;
|
20 | 22 | use Symfony\Component\Config\Resource\DirectoryResource;
|
| 23 | +use Symfony\Component\Config\ResourceCheckerInterface; |
21 | 24 | use Symfony\Component\Console\Application;
|
| 25 | +use Symfony\Component\Console\Command\Command; |
22 | 26 | use Symfony\Component\DependencyInjection\Alias;
|
23 | 27 | use Symfony\Component\DependencyInjection\ChildDefinition;
|
24 | 28 | use Symfony\Component\DependencyInjection\ContainerBuilder;
|
25 | 29 | use Symfony\Component\DependencyInjection\ContainerInterface;
|
26 | 30 | use Symfony\Component\DependencyInjection\Definition;
|
27 | 31 | use Symfony\Component\DependencyInjection\Exception\LogicException;
|
28 |
| -use Symfony\Component\DependencyInjection\Reference; |
29 | 32 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
| 33 | +use Symfony\Component\DependencyInjection\Reference; |
| 34 | +use Symfony\Component\DependencyInjection\ServiceSubscriberInterface; |
| 35 | +use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
30 | 36 | use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
31 | 37 | use Symfony\Component\Finder\Finder;
|
| 38 | +use Symfony\Component\Form\FormTypeGuesserInterface; |
| 39 | +use Symfony\Component\Form\FormTypeInterface; |
| 40 | +use Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface; |
| 41 | +use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface; |
| 42 | +use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface; |
32 | 43 | use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
33 | 44 | use Symfony\Component\PropertyAccess\PropertyAccessor;
|
34 |
| -use Symfony\Component\Serializer\Encoder\YamlEncoder; |
| 45 | +use Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface; |
| 46 | +use Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface; |
| 47 | +use Symfony\Component\PropertyInfo\PropertyListExtractorInterface; |
| 48 | +use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface; |
35 | 49 | use Symfony\Component\Serializer\Encoder\CsvEncoder;
|
| 50 | +use Symfony\Component\Serializer\Encoder\EncoderInterface; |
| 51 | +use Symfony\Component\Serializer\Encoder\YamlEncoder; |
36 | 52 | use Symfony\Component\Serializer\Mapping\Factory\CacheClassMetadataFactory;
|
37 | 53 | use Symfony\Component\Serializer\Normalizer\DataUriNormalizer;
|
38 | 54 | use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
|
39 | 55 | use Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer;
|
| 56 | +use Symfony\Component\Serializer\Normalizer\NormalizerInterface; |
| 57 | +use Symfony\Component\Validator\ConstraintValidatorInterface; |
| 58 | +use Symfony\Component\Validator\ObjectInitializerInterface; |
40 | 59 | use Symfony\Component\WebLink\HttpHeaderSerializer;
|
41 | 60 | use Symfony\Component\Workflow;
|
42 | 61 |
|
@@ -225,6 +244,45 @@ public function load(array $configs, ContainerBuilder $container)
|
225 | 244 | 'Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller',
|
226 | 245 | ));
|
227 | 246 |
|
| 247 | + $container->registerForAutoconfiguration(Command::class) |
| 248 | + ->addTag('console.command'); |
| 249 | + $container->registerForAutoconfiguration(ResourceCheckerInterface::class) |
| 250 | + ->addTag('config_cache.resource_checker'); |
| 251 | + $container->registerForAutoconfiguration(ServiceSubscriberInterface::class) |
| 252 | + ->addTag('container.service_subscriber'); |
| 253 | + $container->registerForAutoconfiguration(AbstractController::class) |
| 254 | + ->addTag('controller.service_arguments'); |
| 255 | + $container->registerForAutoconfiguration(Controller::class) |
| 256 | + ->addTag('controller.service_arguments'); |
| 257 | + $container->registerForAutoconfiguration(DataCollectorInterface::class) |
| 258 | + ->addTag('data_collector'); |
| 259 | + $container->registerForAutoconfiguration(FormTypeInterface::class) |
| 260 | + ->addTag('form.type'); |
| 261 | + $container->registerForAutoconfiguration(FormTypeGuesserInterface::class) |
| 262 | + ->addTag('form.type_guesser'); |
| 263 | + $container->registerForAutoconfiguration(CacheClearerInterface::class) |
| 264 | + ->addTag('kernel.cache_clearer'); |
| 265 | + $container->registerForAutoconfiguration(CacheWarmerInterface::class) |
| 266 | + ->addTag('kernel.cache_warmer'); |
| 267 | + $container->registerForAutoconfiguration(EventSubscriberInterface::class) |
| 268 | + ->addTag('kernel.event_subscriber'); |
| 269 | + $container->registerForAutoconfiguration(PropertyListExtractorInterface::class) |
| 270 | + ->addTag('property_info.list_extractor'); |
| 271 | + $container->registerForAutoconfiguration(PropertyTypeExtractorInterface::class) |
| 272 | + ->addTag('property_info.type_extractor'); |
| 273 | + $container->registerForAutoconfiguration(PropertyDescriptionExtractorInterface::class) |
| 274 | + ->addTag('property_info.description_extractor'); |
| 275 | + $container->registerForAutoconfiguration(PropertyAccessExtractorInterface::class) |
| 276 | + ->addTag('property_info.access_extractor'); |
| 277 | + $container->registerForAutoconfiguration(EncoderInterface::class) |
| 278 | + ->addTag('serializer.encoder'); |
| 279 | + $container->registerForAutoconfiguration(NormalizerInterface::class) |
| 280 | + ->addTag('serializer.normalizer'); |
| 281 | + $container->registerForAutoconfiguration(ConstraintValidatorInterface::class) |
| 282 | + ->addTag('validator.constraint_validator'); |
| 283 | + $container->registerForAutoconfiguration(ObjectInitializerInterface::class) |
| 284 | + ->addTag('validator.initializer'); |
| 285 | + |
228 | 286 | if (PHP_VERSION_ID < 70000) {
|
229 | 287 | $this->addClassesToCompile(array(
|
230 | 288 | 'Symfony\\Component\\Config\\ConfigCache',
|
|
0 commit comments