Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
    /**
     * 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);
    }
Ejemplo n.º 3
0
 /**
  * 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');
 }
Ejemplo n.º 4
0
 /**
  * Constructor
  */
 public function __construct($environment, $options = null)
 {
     Enlight($this);
     parent::__construct($environment, $options);
 }