cd /path/to/composer/install/dir
curl -s https://getcomposer.org/installer | php
1B) Install symfony:
cd /path/to/composer/install/dir
php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony 2.1.x-dev
_____________________
2) To optionally install propel:
2A) Configure composer.json file
cd /path/to/webroot/Symfony
Open /path/to/webroot/Symfony/composer.json in a text editor
Add in the following line:
"require": {
... ,
"propel/propel-bundle": "1.1.*"
},
2B) Download and install propel:
cd /path/to/webroot/Symfony
php /path/to/composer/install/dir/composer.phar update
After this step, you'll need to manually register the bundle in the AppKernel.php file. See the following page for how to do that: http://propelorm.org/cookbook/symfony2/working-with-symfony2.html#configuration (Search for "The second step is to register this bundle in the
AppKernel
class:") (Note that I had to add the first configuration on that page, even though I was using Composer")After that, you'll need to "configure the bundle": http://propelorm.org/cookbook/symfony2/working-with-symfony2.html#configuration Note: I had to comment out or delete the doctrine: block, otherwise symfony would get confused and thought I was using doctrine.
No comments:
Post a Comment