steevanb / symfony-container-introspection
获取所有所需的 Symfony 容器信息:已注册的服务、实例化服务等
3.1.0
2024-08-28 15:45 UTC
Requires
- php: ^7.1 || ^8.0
- symfony/dependency-injection: ^5.0 || ^6.0 || ^7.0
Requires (Dev)
- ocramius/proxy-manager: ^2.0
- symfony/config: ~5.0.0
- symfony/http-kernel: ~5.0.0
This package is auto-updated.
Last update: 2024-08-28 15:47:53 UTC
README
symfony-container-introspection
它可以帮助您了解哪些服务被实例化、删除、公开,并列出容器参数。
您有权访问容器缓存统计信息:文件数、代码行数和缓存大小。
使用 Symfony,将出现一个新的分析标签页
如果您想与 symfony/dependency-injection ^3.4
一起使用,请使用 steevanb/symfony-container-introspection ^1.0。
如果您想与 symfony/dependency-injection ^4.0
一起使用,请使用 steevanb/symfony-container-introspection ^1.1。
安装
composer require --dev steevanb/symfony-container-introspection ^3.1
如果您使用 Symfony(而不仅仅是 symfony/dependency-injection
),则可以将 ContainerIntrospectionBundle
添加到您的 Kernel 中
# config/bundles.php <?php return [ Steevanb\ContainerIntrospection\Bridge\ContainerIntrospectionBundle\ContainerIntrospectionBundle::class => ['dev' => true] ];