steevanb / symfony-container-introspection

获取所有所需的 Symfony 容器信息:已注册的服务、实例化服务等

3.1.0 2024-08-28 15:45 UTC

README

Version php Lines

symfony-container-introspection

它可以帮助您了解哪些服务被实例化、删除、公开,并列出容器参数。

您有权访问容器缓存统计信息:文件数、代码行数和缓存大小。

使用 Symfony,将出现一个新的分析标签页

Symfony profiler tab

Symfony profiler

变更日志

如果您想与 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]
];