Beispiel #1
0
 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);
 }
Beispiel #2
0
 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;
     }
 }
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed
  */
 protected function setUp()
 {
     $this->container = $this->getMock(ContainerInterface::class);
     InsideConstruct::setContainer($this->container);
 }
Beispiel #5
0
 public function __construct($newPropA = null)
 {
     $params = InsideConstruct::initServices(['newPropA']);
     $propA = $params['newPropA'];
     parent::__construct(true, $propA);
 }
Beispiel #6
0
 public function __construct(AdapterInterface $emailDbAdapter = null)
 {
     //set $this->emailDbAdapter as $cotainer->get('emailDbAdapter');
     InsideConstruct::initServices();
 }