Permalink
Browse files

using composer with latest vendors

  • Loading branch information...
1 parent 5b3126d commit 2e9c6674123184a8eb9d49ec02765f8c114b86b1 @l3pp4rd committed Jan 21, 2012
View
@@ -22,8 +22,13 @@ Run the following commands:
Configure your database connection settings in: **app/config/parameters.yml**
Proceed with installation:
+**Note:** it uses latest versions of symfony2 and other vendors. There might be conflicts
- php bin/vendors install
+ wget http://getcomposer.org/composer.phar
+ php composer.phar install
+ php bin/build_bootstrap
+ php app/console assets:install web
+ php app/console cache:warmup -e dev
php app/console assetic:dump -e dev
php app/console doctrine:schema:create
php app/console gedmo:blog:update
View
@@ -13,7 +13,7 @@ public function registerBundles()
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
- new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
+ new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
//new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
View
@@ -1,56 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-/*
- * This file is part of the Symfony Standard Edition.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-set_time_limit(0);
-
-$rootDir = dirname(__DIR__);
-$vendorDir = $rootDir.'/vendor';
-
-array_shift($argv);
-if (!isset($argv[0])) {
- exit(<<<EOF
-Symfony2 vendors script management.
-
-Specify a command to run:
-
- install: install vendors as specified in composer.json or composer.lock (recommended)
- update: update vendors to their latest versions (as specified in composer.json)
-
-EOF
- );
-}
-
-if (!in_array($command = array_shift($argv), array('install', 'update'))) {
- exit(sprintf("Command \"%s\" does not exist.\n", $command));
-}
-
-// Download composer if not downloaded yet
-if (!file_exists($rootDir.'/composer.phar')) {
- file_put_contents($rootDir.'/composer.phar',
- file_get_contents('http://getcomposer.org/composer.phar')
- );
-}
-
-// php on windows can't use the shebang line from system()
-$interpreter = defined('PHP_WINDOWS_VERSION_BUILD') ? 'php.exe' : 'php';
-
-// Install/update dependencies
-system(sprintf('%s %s %s', $interpreter, escapeshellarg($rootDir.'/composer.phar'), $command));
-
-// Update the bootstrap files
-system(sprintf('%s %s', $interpreter, escapeshellarg($rootDir.'/bin/build_bootstrap')));
-
-// Update assets
-system(sprintf('%s %s assets:install %s', $interpreter, escapeshellarg($rootDir.'/app/console'), escapeshellarg($rootDir.'/web/')));
-
-// Remove the cache
-system(sprintf('%s %s cache:clear --no-warmup', $interpreter, escapeshellarg($rootDir.'/app/console')));
View
@@ -1,20 +1,25 @@
{
"require": {
"php": ">=5.3.2",
- "symfony/symfony": ">=2.0.9,<2.1.0-dev",
- "doctrine/orm": ">=2.1.0,<2.3.0-dev",
+ "symfony/symfony": "2.1.*",
+ "doctrine/orm": "2.2.*",
+ "doctrine/doctrine-bundle": "*",
"twig/extensions": "*",
"symfony/assetic-bundle": "*",
- "sensio/framework-extra-bundle": "2.0.*",
- "sensio/distribution-bundle": "2.0.*",
+ "sensio/framework-extra-bundle": "*",
+ "sensio/distribution-bundle": "*",
"knplabs/knp-paginator-bundle": "*",
"knplabs/knp-menu-bundle": "*",
"knplabs/knp-time-bundle": "*",
"knplabs/knp-markdown-bundle": "*",
"stof/doctrine-extensions-bundle": "*"
},
+ "config": {
+ "bin-dir": "bin/"
+ },
+
"autoload": {
"psr-0": {
"Gedmo\\BlogBundle": "src/",
View

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

Oops, something went wrong.
View
BIN composer.phar 100644 → 100755
Binary file not shown.
@@ -2,7 +2,7 @@
namespace Gedmo\BlogBundle\Command;
-use Symfony\Bundle\DoctrineBundle\Command\DoctrineCommand;
+use Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
@@ -2,7 +2,7 @@
namespace Gedmo\BlogBundle\Command;
-use Symfony\Bundle\DoctrineBundle\Command\DoctrineCommand;
+use Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
@@ -2,7 +2,7 @@
namespace Gedmo\BlogBundle\Command;
-use Symfony\Bundle\DoctrineBundle\Command\DoctrineCommand;
+use Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
@@ -2,7 +2,7 @@
namespace Gedmo\DemoBundle\Command;
-use Symfony\Bundle\DoctrineBundle\Command\DoctrineCommand;
+use Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;

0 comments on commit 2e9c667

Please sign in to comment.