vendor/codeages/plugin-bundle/System/Slot/SlotManager.php
(开头部分) 778B这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Codeages\PluginBundle\System\Slot;
class SlotManager
{
protected $dispatcher;
protected $collector;
public function __construct($collector, $container)
{
$this->collector = $collector;
$this->container = $container;
}
public function fire($name, $args)
{
$injections = $this->collector->getInjections($name);
if (empty($injections)) {
return '';
}
$contents = array();
foreach ($injections as $name => $class) {
$injection = new $class();
$injection->setContainer($this->container);
$injection->setArgements($args);
$contents[] = $injection->inject();
}
return implode('', $contents);
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。