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(); }
public function __construct($useDi, $propA = null, $propB = null, $propC = null) { if ($useDi) { InsideConstruct::initServices(); } else { $this->propA = $propA; $this->propB = $propB; $this->propC = $propC; } }
public function __construct($newPropA = null) { $params = InsideConstruct::initServices(['newPropA']); $propA = $params['newPropA']; parent::__construct(true, $propA); }
public function __construct(AdapterInterface $emailDbAdapter = null) { //set $this->emailDbAdapter as $cotainer->get('emailDbAdapter'); InsideConstruct::initServices(); }