Permalink
Browse files

Fixed README

  • Loading branch information...
1 parent a980c59 commit 1ecc04784b46ba1ca4d2e82b30df87933b8c6a34 @maxromanovsky maxromanovsky committed Mar 21, 2013
Showing with 15 additions and 6 deletions.
  1. +15 −6 README.markdown
View
@@ -9,17 +9,17 @@ Requirements
-----------
For making use of this bundle you need Symfony2 running on a PHP setup
-where the mysqli extension is activated and mysqlnd is being used. The mysqli
-extension is only used to retrieve data. It is no requirement for your
-application to use to use mysqli. Applications using Doctrine and PDO are
+where the mysqli extension is activated and mysqlnd is being used. The mysqli
+extension is only used to retrieve data. It is no requirement for your
+application to use to use mysqli. Applications using Doctrine and PDO are
fully supported.
Installation
------------
Installation is a quick process:
-1. Download JSMysqlndBundle
+1. Download JSMysqlndBundle or install it via Composer
2. Configure the Autoloader
3. Enable the Bundle
@@ -29,8 +29,15 @@ Ultimately, the JSMysqlndBundle files should be downloaded to the
`vendor/bundles/JS/MysqlndBundle` directory.
This can be done in several ways, depending on your preference. The first
-method is the standard Symfony2 method.
+method is the standard method for Symfony 2.1+.
+**Using Composer**
+
+``` bash
+$ php composer.phar require "js/mysqlnd-bundle=dev-master"
+```
+
+The second method is the standard method for Symfony 2.0
**Using the vendors script**
Add the following lines in your `deps` file:
@@ -58,6 +65,8 @@ $ git submodule update --init
### Step 2: Configure the Autoloader
+This step should be omitted if you used Composer to install this Bundle.
+
Add the `JS` namespace to your autoloader:
``` php
@@ -87,7 +96,7 @@ public function registerBundles()
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
// ...
- $bundles[] = new JS/MysqlndBundle();
+ $bundles[] = new \JS\MysqlndBundle\JSMysqlndBundle();
}
}
```

0 comments on commit 1ecc047

Please sign in to comment.