Example #1
0
 /**
  * @param AbstractCustomConfig      $config - The configuration to use when grabbing the database
  * @param null                      $name - The name under which this was stored
  */
 public function __construct(AbstractCustomConfig $config = null, $name = null)
 {
     if ($config == null) {
         $config = new DefaultCustomConfig();
     }
     $this->config = $config;
     parent::__construct($name);
 }
Example #2
0
 public function __construct(AbstractCustomConfig &$config, $name)
 {
     $this->config = $config;
     parent::__construct($name);
 }