The bundle ships one console command for setting up configuration when the Symfony Flex recipe is not available.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nowo-tech/TwigInspectorBundle/llms.txt
Use this file to discover all available pages before exploring further.
nowo:twig-inspector:install
Creates the Twig Inspector Bundle configuration file and ensures routes are set up.What it does
Running this command performs two actions:- Creates
config/packages/{env}/nowo_twig_inspector.yamlwith all available options pre-filled and commented. - Creates or updates
config/routes.yamlto include the bundle’s route import underwhen@dev:andwhen@test:.
config/routes.yaml already contains an import for NowoTwigInspectorBundle or nowo_twig_inspector, the command skips the route update to avoid duplicates.
When to use it
If you installed the bundle from Packagist and the Symfony Flex recipe ran successfully, you do not need this command — the config and routes files are created automatically during
composer require.- Installing from a private Git repository (Flex recipes do not apply to private sources).
- The Flex recipe did not run for any reason and config/routes files are missing.
- You want to regenerate the config file with the full annotated template.
Options
Environment name for which to create the configuration file. Determines the subdirectory:
config/packages/{env}/nowo_twig_inspector.yaml.Default: devOverwrite the configuration file if it already exists, without prompting for confirmation. Short alias:
-f.Interactive behaviour
If the configuration file already exists and--force is not set, the command prompts:
no (or press Enter) to cancel without changes. Answer yes to overwrite.
Examples
Basic setup for dev
config/packages/dev/nowo_twig_inspector.yaml and updates config/routes.yaml.Generated config file
The command writes the following fully annotated configuration:Generated routes entry
The command appends the following toconfig/routes.yaml if the import is not already present:
The bundle works with default values if you later delete the configuration file. The routes file is required for the “open in IDE” links to work.
