From 994497aa9d81409beb8fb5417ec9d3ac67adac52 Mon Sep 17 00:00:00 2001 From: mohamed gasmi Date: Thu, 21 Jul 2022 23:21:23 +0200 Subject: [PATCH] add command related to tags --- reference/dic_tags.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 768e4464b75..28d11c3c392 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -8,6 +8,18 @@ services that require special processing, like console commands or Twig extensio This article shows the most common tags provided by Symfony components, but in your application there could be more tags available provided by third-party bundles. +Run this command to display tagged services in your application: + +.. code-block:: terminal + + $ php bin/console debug:container --tags + +To search for a specific tag, re-run this command with a search term: + +.. code-block:: terminal + + $ php bin/console debug:container --tag=form.type + auto_alias ----------