/** * Constructor method * * @param string $environment * @param array $options * @param Container $container */ public function __construct($environment, array $options, Container $container) { $this->container = $container; Shopware($this); if ($this->oldPath === null) { $this->oldPath = realpath(__DIR__ . '/../../') . DIRECTORY_SEPARATOR; } parent::__construct($environment, $options, $container); $container->setBootstrap($this->Bootstrap()); $container->setApplication($this); }
/** * Constructor method * * @param string $environment * @param mixed $options */ public function __construct($environment = 'production', $options = null) { Shopware($this); $this->oldPath = dirname(realpath(dirname($this->AppPath()))) . $this->DS(); if ($options === null) { $options = $this->AppPath() . 'Configs/Default.php'; } parent::__construct($environment, $options); }
/** * Constructor method * * Loads all needed resources for the test. */ public function __construct() { $this->testPath = dirname(__FILE__) . $this->DS(); parent::__construct('testing', array('app' => 'Default', 'app_path' => realpath($this->testPath . '../../Apps/Default/'))); $this->Bootstrap()->loadResource('Zend'); //$this->Bootstrap()->loadResource('Cache'); //$this->Bootstrap()->loadResource('Db'); //$this->Bootstrap()->loadResource('Plugins'); //$this->Bootstrap()->loadResource('Session'); //$this->Loader()->loadClass('Shopware_Components_Test_TicketListener'); //$this->Loader()->loadClass('Shopware_Components_Test_MailListener'); //$this->Config()->hostOriginal = $this->Config()->host; //$this->Bootstrap()->loadResource('License'); }
/** * Constructor */ public function __construct($environment, $options = null) { Enlight($this); parent::__construct($environment, $options); }