Exemplo n.º 1
0
 public function __construct($container)
 {
     parent::__construct($container);
     $this->dbAdapter = $this->container->get('db');
     $this->eavInstaller = new EavInstaller($container);
     $this->compositeInstaller = new CompositeInstaller($container);
 }
Exemplo n.º 2
0
 public function __construct($container)
 {
     parent::__construct($container);
     $this->dbAdapter = $this->container->get('db');
 }
Exemplo n.º 3
0
 /**
  *
  *
  * Add to config:
  * <code>
  *    'services' => [
  *        'aliases' => [
  *            EavAbstractFactory::DB_SERVICE_NAME => getenv('APP_ENV') === 'prod' ? 'dbOnProduction' : 'local-db',
  *        ],
  *        'abstract_factories' => [
  *            EavAbstractFactory::class,
  *        ]
  *    ],
  * </code>
  * @param type $container
  */
 public function __construct($container)
 {
     parent::__construct($container);
     $this->dbAdapter = $this->container->get(EavAbstractFactory::DB_SERVICE_NAME);
 }