Documentation

UnusedTagsPass
in package
implements CompilerPassInterface

Find all service tags which are defined, but not used and yield a warning log message.

Tags
author

Florian Pfitzer pfitzer@wurzel3.de

Interfaces, Classes and Traits

CompilerPassInterface
Interface that must be implemented by compilation passes.

Table of Contents

KNOWN_TAGS  = ['annotations.cached_reader', 'assets.package', 'auto_alias', 'cache.pool', 'cache.pool.clearer', 'chatter.transport_factory', 'config_cache.resource_checker', 'console.command', 'container.do_not_inline', 'container.env_var_loader', 'container.env_var_processor', 'container.hot_path', 'container.no_preload', 'container.preload', 'container.private', 'container.reversible', 'container.service_locator', 'container.service_locator_context', 'container.service_subscriber', 'container.stack', 'controller.argument_value_resolver', 'controller.service_arguments', 'data_collector', 'event_dispatcher.dispatcher', 'form.type', 'form.type_extension', 'form.type_guesser', 'http_client.client', 'kernel.cache_clearer', 'kernel.cache_warmer', 'kernel.event_listener', 'kernel.event_subscriber', 'kernel.fragment_renderer', 'kernel.locale_aware', 'kernel.reset', 'ldap', 'mailer.transport_factory', 'messenger.bus', 'messenger.message_handler', 'messenger.receiver', 'messenger.transport_factory', 'mime.mime_type_guesser', 'monolog.logger', 'notifier.channel', 'property_info.access_extractor', 'property_info.initializable_extractor', 'property_info.list_extractor', 'property_info.type_extractor', 'proxy', 'routing.expression_language_function', 'routing.expression_language_provider', 'routing.loader', 'routing.route_loader', 'security.authenticator.login_linker', 'security.expression_language_provider', 'security.remember_me_aware', 'security.remember_me_handler', 'security.voter', 'serializer.encoder', 'serializer.normalizer', 'texter.transport_factory', 'translation.dumper', 'translation.extractor', 'translation.loader', 'translation.provider_factory', 'twig.extension', 'twig.loader', 'twig.runtime', 'validator.auto_mapper', 'validator.constraint_validator', 'validator.initializer']
process()  : mixed
You can modify the container here before it is dumped to PHP code.

Constants

KNOWN_TAGS

private mixed KNOWN_TAGS = ['annotations.cached_reader', 'assets.package', 'auto_alias', 'cache.pool', 'cache.pool.clearer', 'chatter.transport_factory', 'config_cache.resource_checker', 'console.command', 'container.do_not_inline', 'container.env_var_loader', 'container.env_var_processor', 'container.hot_path', 'container.no_preload', 'container.preload', 'container.private', 'container.reversible', 'container.service_locator', 'container.service_locator_context', 'container.service_subscriber', 'container.stack', 'controller.argument_value_resolver', 'controller.service_arguments', 'data_collector', 'event_dispatcher.dispatcher', 'form.type', 'form.type_extension', 'form.type_guesser', 'http_client.client', 'kernel.cache_clearer', 'kernel.cache_warmer', 'kernel.event_listener', 'kernel.event_subscriber', 'kernel.fragment_renderer', 'kernel.locale_aware', 'kernel.reset', 'ldap', 'mailer.transport_factory', 'messenger.bus', 'messenger.message_handler', 'messenger.receiver', 'messenger.transport_factory', 'mime.mime_type_guesser', 'monolog.logger', 'notifier.channel', 'property_info.access_extractor', 'property_info.initializable_extractor', 'property_info.list_extractor', 'property_info.type_extractor', 'proxy', 'routing.expression_language_function', 'routing.expression_language_provider', 'routing.loader', 'routing.route_loader', 'security.authenticator.login_linker', 'security.expression_language_provider', 'security.remember_me_aware', 'security.remember_me_handler', 'security.voter', 'serializer.encoder', 'serializer.normalizer', 'texter.transport_factory', 'translation.dumper', 'translation.extractor', 'translation.loader', 'translation.provider_factory', 'twig.extension', 'twig.loader', 'twig.runtime', 'validator.auto_mapper', 'validator.constraint_validator', 'validator.initializer']

Methods

Search results