コード例 #1
0
ファイル: Application.php プロジェクト: GerDner/luck-docker
 /**
  * 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);
 }
コード例 #2
0
ファイル: Application.php プロジェクト: nhp/shopware-4
    /**
     * 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);
    }
コード例 #3
0
ファイル: TestHelper.php プロジェクト: nvdnkpr/Enlight
 /**
  * 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');
 }
コード例 #4
0
ファイル: Enlight.php プロジェクト: nhp/shopware-4
 /**
  * Constructor
  */
 public function __construct($environment, $options = null)
 {
     Enlight($this);
     parent::__construct($environment, $options);
 }