示例#1
0
 public final function __construct(IConfig $config)
 {
     if (null === $config || !$config->isReadSuccess()) {
         throw new Err('', Err::E_CFG_INCORRECT);
     }
     $this->config = $config;
     //$this->class = new PhpClass($this->config->getNamespace().'\\'.$this->config->getClass());
     $this->phpClass = new PhpClass($this->config->getClass());
     $this->phpClass->setNamespace($this->config->getNamespace());
     $this->phpClass->useLangFile();
     $this->phpClass->setLangPrefix($this->config->getLangPrefix());
     $this->__init($config);
 }