Permalink
Browse files

Installer

  • Loading branch information...
1 parent 27dd5a0 commit fec74b7d7467a7bbb49a8b940d0e2ba471a047b0 @umpirsky umpirsky committed May 27, 2013
Showing with 103 additions and 10 deletions.
  1. +3 −1 .gitignore
  2. +1 −0 app/SyliusKernel.php
  3. +3 −0 app/config/routing.yml
  4. +5 −0 app/config/sylius.yml
  5. +4 −0 bin/install
  6. +1 −0 composer.json
  7. +70 −9 composer.lock
  8. +16 −0 web/install.php
View
@@ -14,5 +14,7 @@ web/js/*
web/assets/compiled/*
web/media/*
-bin/*
+bin/behat
+bin/doctrine*
+bin/phpspec
vendor/*
View
@@ -33,6 +33,7 @@ public function registerBundles()
new Sylius\Bundle\WebBundle\SyliusWebBundle(),
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
+ new Sylius\Bundle\InstallerBundle\SyliusInstallerBundle(),
new Sylius\Bundle\MoneyBundle\SyliusMoneyBundle(),
new Sylius\Bundle\SettingsBundle\SyliusSettingsBundle(),
new Sylius\Bundle\CartBundle\SyliusCartBundle(),
View
@@ -1,3 +1,6 @@
+sylius_installer:
+ resource: @SyliusInstallerBundle/Resources/config/routing.yml
+
sylius_web:
resource: @SyliusWebBundle/Resources/config/routing/main.yml
View
@@ -1,6 +1,11 @@
sylius_core:
driver: doctrine/orm
+sylius_installer:
+ classes:
+ user:
+ model: Sylius\Bundle\CoreBundle\Entity\User
+
sylius_money:
currency: %sylius.currency%
locale: %sylius.locale%
View
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+composer.phar install --dev
+./app/console sylius:install
View
@@ -32,6 +32,7 @@
"incenteev/composer-parameter-handler": "~2.0",
"mathiasverraes/money": "dev-master@dev",
"jms/translation-bundle": "1.1.*",
+ "sylius/installer-bundle": "0.1.*",
"sylius/assortment-bundle": "0.1.*",
"sylius/cart-bundle": "0.3.*",
"sylius/money-bundle": "0.1.*",
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,16 @@
+<?php
+
+/*
+ * This file is part of the Sylius package.
+ *
+ * (c) Paweł Jędrzejewski
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+if (!is_dir(__DIR__.'/../vendor')) {
+ exec('cd .. && wget http://getcomposer.org/composer.phar && php composer.phar install --dev --no-interaction');
+}
+
+header('Location: /installer');

0 comments on commit fec74b7

Please sign in to comment.