Skip to content

[Doc] Remove the --dir option in debug:twig-component command #1790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions src/TwigComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ and any other components by running:

.. code-block:: terminal

$ php bin/console debug:twig-component --dir=bar
$ php bin/console debug:twig-component

Take a moment to fist pump - then come back!

Expand Down Expand Up @@ -1598,7 +1598,7 @@ Debugging Components
As your application grows, you'll eventually have a lot of components.
This command will help you to debug some components issues.
First, the debug:twig-component command lists all your application components
who live in ``templates/components``:
that live in ``templates/components/``:

.. code-block:: terminal

Expand All @@ -1614,15 +1614,7 @@ who live in ``templates/components``:
| foo:Anonymous | Anonymous component | components/foo/Anonymous.html.twig | |
+---------------+-----------------------------+------------------------------------+------+

If you have some components that don't live in ``templates/components/``,
but in ``templates/bar`` for example, you can pass an option:

.. code-block:: terminal

$ php bin/console debug:twig-component --dir=bar

And the name of some component to this argument to print the
component details:
Pass the name of some component as an argument to print its details:

.. code-block:: terminal

Expand Down