Пример #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);
 }
Пример #2
0
 public function __construct($container)
 {
     parent::__construct($container);
     $this->dbAdapter = $this->container->get('db');
 }
Пример #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);
 }