0
所以我剛剛整合疙瘩成一個項目,我在我現在的情況是,我在文件:膨脹的疙瘩容器 - 這是正常的嗎?
/application/config/pimple.php
它隨着這些400+:
/* Instantiate new Class */
$this->container['Some_class'] = $this->container->factory(function ($c)
{
require_once "application/classes/some/class.php";
return new Class();
});
我的問題是:這是常態嗎?我應該關心這個嗎?有沒有更好的方法來做到這一點?