Thanks to visit codestin.com
Credit goes to github.com

Skip to content

List tags that are automatically applied for you with autoconfigure enabled #9229

Closed
@aaa2000

Description

@aaa2000

In https://github.com/symfony/symfony-docs/blob/4.0/service_container/tags.rst#autoconfiguring-tags, the documentation only mentions twig.extension tag.

Having the list increases the readability of the file by reducing its size.

It seems to me that the implemantion of these interfaces are automaticaly tagged:

interface/class tag
Twig_ExtensionInterface::class twig.extension
Twig_LoaderInterface::class twig.loader
Twig\Extension\ExtensionInterface twig.extension
Twig\Loader\LoaderInterface twig.loader
Twig\Extension\RuntimeExtensionInterface twig.runtime
Symfony\Component\Console\Command\Command console.command
Symfony\Component\Config\ResourceCheckerInterface config_cache.resource_checker
Symfony\Component\DependencyInjection\EnvVarProcessorInterface container.env_var_processor
Symfony\Component\DependencyInjection\ServiceSubscriberInterface container.service_subscriber
Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface controller.argument_value_resolver
Symfony\Bundle\FrameworkBundle\Controller\AbstractController controller.service_arguments
Symfony\Bundle\FrameworkBundle\Controller\Controller controller.service_arguments
Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface data_collector
Symfony\Component\Form\FormTypeInterface form.type
Symfony\Component\Form\FormTypeGuesserInterface form.type_guesser
Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface kernel.cache_clearer
Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface kernel.cache_warmer
Symfony\Component\EventDispatcher\EventSubscriberInterface kernel.event_subscriber
Symfony\Component\Cache\ResettableInterface kernel.reset
Symfony\Component\PropertyInfo\PropertyListExtractorInterface property_info.list_extractor
Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface property_info.type_extractor
Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface property_info.description_extractor
Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface property_info.access_extractor
Symfony\Component\Serializer\Encoder\EncoderInterface serializer.encoder
Symfony\Component\Serializer\Encoder\DecoderInterface serializer.encoder
Symfony\Component\Serializer\Normalizer\NormalizerInterface serializer.normalizer
Symfony\Component\Serializer\Normalizer\DenormalizerInterface serializer.normalizer
Symfony\Component\Validator\ConstraintValidatorInterface validator.constraint_validator
Symfony\Component\Validator\ObjectInitializerInterface validator.initializer
Symfony\Component\Security\Core\Authorization\Voter\VoterInterface security.voter

https://github.com/symfony/symfony/blob/44b2f97dcd2ba10857dd545e424ad4f48c9dbea1/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php#L154

https://github.com/symfony/symfony/blob/374f6e2353781709356e334665539bc31f2c4e11/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L285

https://github.com/symfony/symfony/blob/302f33702dcf29dbfdd09c72cdf69273fe8c60a6/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php#L121

Are there others autoconfiguring tags ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions