|
1 |
| -[](https://github.com/steevanb/symfony-container-introspection) |
| 1 | +[](https://github.com/steevanb/symfony-container-introspection/tree/1.0.0) |
| 2 | +[](https://php.net) |
| 3 | +[](https://symfony.com) |
| 4 | + |
| 5 | + |
| 6 | +[](https://scrutinizer-ci.com/g/steevanb/symfony-container-introspection/) |
| 7 | + |
| 8 | +symfony-container-introspection |
| 9 | +=============================== |
| 10 | + |
| 11 | +It helps you to know which services are registered, instanciated, public or private and list container parameters. |
| 12 | + |
| 13 | +You have access to Container cache statistics: files count, count code lines and cache size. |
| 14 | + |
| 15 | +With Symfony, a new profiler tab will appear: |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +[Changelog](changelog.md) |
| 22 | + |
| 23 | +Installation |
| 24 | +============ |
| 25 | + |
| 26 | +```bash |
| 27 | +composer require steevanb/symfony-container-introspection ^1.0 |
| 28 | +``` |
| 29 | + |
| 30 | +If you use Symfony (and not just symfony/dependency-injection), you can add `ContainerIntrospectionBundle` to your Kernel: |
| 31 | +```php |
| 32 | +# app/AppKernel.php for Symfony 3.* |
| 33 | +# src/Kernel.php for Symfony 4.* |
| 34 | + |
| 35 | +class Kernel |
| 36 | +{ |
| 37 | + public function registerBundles() |
| 38 | + { |
| 39 | + if ($this->getEnvironment() === 'dev') { |
| 40 | + $bundles[] = new \steevanb\ContainerIntrospection\Bridge\ContainerIntrospectionBundle\ContainerIntrospectionBundle(); |
| 41 | + } |
| 42 | + } |
| 43 | +} |
| 44 | +``` |
0 commit comments