public function __construct($rockyMountainDbAdapter = null) { //set $this->rockyMountainDbAdapter as $cotainer->get('rockyMountainDbAdapter'); InsideConstruct::initServices(); $dbTable = new TableGateway(static::TABLE_NAME, $this->rockyMountainDbAdapter); parent::__construct($dbTable); }
public function __construct($emailDbAdapter = null) { //set $this->emailDbAdapter as $cotainer->get('emailDbAdapter'); InsideConstruct::initServices(); $dbTable = new TableGateway(static::TABLE_NAME, $this->emailDbAdapter); parent::__construct($dbTable); $this->apiEmail = new ApiGmail(); }