示例#1
0
 /**
  * Constructor
  *
  * Prevent creating instances of this class by making the constructor private
  *
  * @param ObjectConfig $config   An optional ObjectConfig object with configuration options
  */
 public function __construct(ObjectConfig $config)
 {
     parent::__construct($config);
     //Set the parameters
     $this->setParameters($config->parameters);
     // Mixin the behavior (and command) interface
     $this->mixin('lib:behavior.mixin', $config);
 }
示例#2
0
 /**
  * Constructor
  *
  * @param ObjectConfig $config   An optional ObjectConfig object with configuration options
  */
 public function __construct(ObjectConfig $config)
 {
     parent::__construct($config);
     //Reset the stack
     $this->__stack = array();
     //Set debug
     $this->setDebug($config->debug);
     //Set cache
     $this->setCache($config->cache, $config->cache_path, $config->cache_reload);
 }