diff --git a/.gitignore b/.gitignore index 6c403bebe2..df697205aa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +composer.lock +composer.phar tests/Fixtures/bookstore-packaged/build/ tests/Fixtures/bookstore/build/ tests/Fixtures/namespaced/build/ diff --git a/README.md b/README.md index b954b74c70..4e440989e0 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.3. Propel2 uses the following Symfony2 Components: * [ClassLoader](https://github.com/symfony/ClassLoader) +* [Console](https://github.com/symfony/Console) * [Yaml](https://github.com/symfony/Yaml) Propel2 is only supported on PHP 5.3.3 and up. @@ -21,7 +22,7 @@ Read the [Propel documentation](http://www.propelorm.org/). ## Contribute ## Everybody can contribute to Propel2. Just fork it, and send Pull Requests. -You have to follow [Propel2 Coding Standards](http://github.com/propelorm/Propel2/issues/2) and provides unit tests as much as possible. +You have to follow [Propel2 Coding Standards](https://github.com/propelorm/Propel2/wiki/Coding-Standards) and provides unit tests as much as possible. **Note:** you can fix checkstyle before to submit a Pull Request by using the Symfony2 `check_cs` script. You just need to install [Finder](http://github.com/symfony/Finder) and the script: @@ -37,9 +38,14 @@ Then use it: ## Unit Tests ## -To run unit tests, you'll have to install vendors: +To run unit tests, you'll have to install vendors by using [**Composer**](https://github.com/composer/composer). +If you don't have an available `composer.phar` command, just download it: - ./bin/install_vendors.sh + wget http://getcomposer.org/composer.phar + +Then, install dependencies: + + php composer.phar install Once done, build fixtures: diff --git a/autoload.php.dist b/autoload.php.dist index 67be50a1e5..11378e3fc4 100644 --- a/autoload.php.dist +++ b/autoload.php.dist @@ -13,8 +13,8 @@ $loader->registerNamespaces(array( __DIR__ . '/tests/Fixtures/bookstore/build/classes', __DIR__ . '/tests/Fixtures/schemas/build/classes', ), - 'Propel\Runtime' => __DIR__ . '/src', - 'Propel\Generator' => __DIR__ . '/src', - 'Symfony\Component' => __DIR__ . '/vendor', + 'Propel\Runtime' => __DIR__ . '/src', + 'Propel\Generator' => __DIR__ . '/src', + 'Symfony\Component' => __DIR__ . '/vendor', )); $loader->register(); diff --git a/bin/install_vendors.sh b/bin/install_vendors.sh deleted file mode 100755 index fdb26ee0ff..0000000000 --- a/bin/install_vendors.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -function installOrUpdate -{ - echo "Installing/Updating $1" - - if [ ! -d "$1" ] ; then - git clone $2 $1 - fi - - cd $1 - git fetch -q origin - git reset --hard $3 - cd - -} - -installOrUpdate "vendor/Symfony/Component/ClassLoader" "http://github.com/symfony/ClassLoader.git" "origin/master" -installOrUpdate "vendor/Symfony/Component/Yaml" "http://github.com/symfony/Yaml.git" "origin/master" -installOrUpdate "vendor/Symfony/Component/Console" "http://github.com/symfony/Console.git" "origin/master" diff --git a/bin/propel.php b/bin/propel.php index f632a0a2b2..845f4d32d1 100644 --- a/bin/propel.php +++ b/bin/propel.php @@ -1,6 +1,9 @@ =5.3.2", - "symfony/class-loader": ">=2.1", - "symfony/yaml": ">=2.1" + "symfony/class-loader": ">=2.0", + "symfony/yaml": ">=2.0", + "symfony/console": ">=2.0" } }