Download the PHP package egulias/tag-debug-command-bundle without Composer
On this page you can find all versions of the php package egulias/tag-debug-command-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download egulias/tag-debug-command-bundle
More information about egulias/tag-debug-command-bundle
Files in egulias/tag-debug-command-bundle
Package tag-debug-command-bundle
Short Description Symfony 2 console command to debug services tags
License MIT
Homepage https://github.com/egulias/TagDebugCommandBundle.git
Informations about the package tag-debug-command-bundle
Tag debug Command for Symfony2 console
[] (https://travis-ci.org/egulias/TagDebugCommandBundle)
This bundle provides a simple command container:tag-debug
to allow to easily debug tagged services by
providing useful information about those defined in the app.
It will fetch information about all the tagged services.
You can apply your own filters
Usage
As for any command you should use: app/console
from your project root.
The command is:
Available options
--show-private
: if issued will show also private services.--filter
: can be many of this. The form is--filter name=param1,param2
for each filter, whereparam
are the parameters for the given filter.
Available filters
- Name (
name
): Filter by tag name, exact match. Requires one parameter, e.g :--filter name=tag_name
- Attribute Name (
attribute_name
): Filter by tag attribute name, exact match. Requires one parameter, e.g :--filter attribute_name=attr_name
- Attribute Value (
attribute_value
): Filter by tag attribute value, exact match. Requires two parameters, e.g:--filter attribute_value=attr_name,attr_value
- NameRegEx (
name_regex
): Filter by tag name, giving a regular expression. No need to provide a separator (~
is used internally). Requires one parameter, e.g :--filter name_regex=regex
For more information see TagDebug lib
Sample usage and output
Sample Filter
`
See a sample output for this command
Two filters, one with multiple values
See a sample output for this command
Installation and configuration
Get the bundle
Add to your composer.json
Symfony >= 2.3
Use composer to download the new requirement:
Add TagDebugCommandBundle to your application kernel
Configure your own filters
To create your custom filter follow this steps:
- Implement
Egulias\TagDebug\Tag\Filter
interface in your filter class. The filter will receive by constructor as many arguments as you define, from the console. See the examples above. Remember to add a constructor if you want to receive parameters. -
On your config file add:
- Enjoy!
All versions of tag-debug-command-bundle with dependencies
symfony/dependency-injection Version ~2.3
symfony/console Version ~2.3
symfony/framework-bundle Version ~2.3
egulias/tag-debug Version ~1.0