Skip to content

Commit

Permalink
minor symfony#1790 [Doc] Remove the --dir option in debug:twig-compon…
Browse files Browse the repository at this point in the history
…ent command (javiereguiluz)

This PR was squashed before being merged into the 2.x branch.

Discussion
----------

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

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Issues        | -
| License       | MIT

I tried adding the `--dir` option and the command showed an error: `The "--dir" option does not exist.`

Looking at the source code, it looks like this option doesn't exist:

https://github.com/symfony/ux/blob/4b3fcaea426d7493e7151c97ba63697be0cc5061/src/TwigComponent/src/Command/TwigComponentDebugCommand.php#L47-L66

Commits
-------

a1d873c [Doc] Remove the --dir option in debug:twig-component command
  • Loading branch information
kbond committed Apr 26, 2024
2 parents 0a1903e + a1d873c commit ef3ddc7
Showing 1 changed file with 3 additions and 11 deletions.
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 @@ -1597,7 +1597,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 @@ -1613,15 +1613,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

0 comments on commit ef3ddc7

Please sign in to comment.