Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
ListenersDebugCommandBundle | 7x | stable |
Version | Compatible with |
---|---|
N/A | N/A |
This bundle provides a simple command container:debug:listeners to allow to easyly debug listeners by
provinding useful information about those defined in the app. It will fetch information about all the listeners
tagged with .event_listener
If you are using this from Symfony <= 2.2, please update your composer.json file to use version=1.4.1 which is the current
stable branch for Symfony 2.2.x
If you are using this from Symfony 2.0.x, please update your deps file to use version=symfony2.0.x which is the current
stable branch for Symfony 2.0.x
As for any command you should use: app/console from your proyect root.
The command is:
app/console container:debug:listeners
There are 4 available options:
Add to your composer.json
{
"require": {
"egulias/listeners-debug-command-bundle": "1.5.0"
}
}
{
"require": {
"egulias/listeners-debug-command-bundle": "symfony2.2"
}
}
Use composer to download the new requirement
$ php composer.phar update egulias/listeners-debug-command-bundle
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Egulias\ListenersDebugCommandBundle\EguliasListenersDebugCommandBundle(),
// ...
);
}
Add to your /deps file :
[EguliasListnersDebugCommandBundle]
git=git@github.com:egulias/ListenersDebugCommandBundle.git
target=/bundles/Egulias/ListenersDebugCommandBundle
version=symfony2.0.x
And make a php bin/vendors install.
// app/autoload.php
$loader->registerNamespaces(array(
'Egulias' => __DIR__.'/../vendor/bundles',
// your other namespaces
));
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Egulias\ListenersDebugCommandBundle\EguliasListenersDebugCommandBundle(),
// ...
);
}