vendor/codeages/plugin-bundle/DependencyInjection/Compiler/EventSubscriberPass.php
(开头部分) 754B这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Codeages\PluginBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class EventSubscriberPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
$subscriberServices = $container->findTaggedServiceIds('codeages_plugin.event.subscriber');
if (empty($subscriberServices)) {
return;
}
$lazySubscribers = $container->getDefinition('codeags_plugin.event.lazy_subscribers');
foreach ($subscriberServices as $id => $tags) {
$lazySubscribers->addMethodCall('addSubscriberService', array($id));
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。