【发布时间】:2019-07-23 20:19:08
【问题描述】:
我创建了一个组件,当我看到该组件的测试代码时,创建了骨架代码:
public function setUp()
{
parent::setUp();
$registry = new ComponentRegistry();
$this->Precio = new PrecioComponent($registry);
}
¿ ComponentRegistry 对象 ($registry) 有什么用?
【问题讨论】:
标签: cakephp cakephp-3.x