|
1 | 1 | # GitElephantBundle #
|
2 | 2 |
|
3 |
| -This is a simple bundle to use the [GitElephant library](https://github.com/matteosister/GitElephant) in a Symfony2 project |
4 |
| - |
5 |
| -Watch a [simple live example](http://gitelephant.cypresslab.net/GitElephant) of what you can do with [GitElephant](https://github.com/matteosister/GitElephant), GitElephantBundle, Symfony2 and a git repository... |
6 |
| - |
7 |
| -[Download the demo bundle code](https://github.com/matteosister/GitElephantDemoBundle) used in the live example |
8 |
| - |
9 |
| - |
10 |
| - |
| 3 | +This is a simple bundle to use the [GitElephant library](https://github.com/matteosister/GitElephant) in a Symfony project. |
11 | 4 |
|
12 | 5 | How to install
|
13 | 6 | --------------
|
14 | 7 |
|
15 |
| -**Method 1 - deps file (for Symfony 2.0)** |
16 |
| - |
17 |
| -- Add the GitElephant library and the bundle itself in the deps file |
18 |
| - |
19 |
| -*deps* |
20 |
| - |
21 |
| - [GitElephant] |
22 |
| - git=git://github.com/matteosister/GitElephant.git |
23 |
| - target=git-elephant |
24 |
| - |
25 |
| - [GitElephantBundle] |
26 |
| - git=git://github.com/matteosister/GitElephantBundle.git |
27 |
| - target=/bundles/Cypress/GitElephantBundle |
28 |
| - |
29 |
| -- Register the two namespaces in the autoload.php file |
30 |
| - |
31 |
| -*app/autoload.php* |
32 |
| - |
33 |
| -``` php |
34 |
| -$loader->registerNamespaces(array( |
35 |
| - // ...other namespaces |
36 |
| - 'GitElephant' => __DIR__.'/../vendor/git-elephant/src', |
37 |
| - 'Cypress' => __DIR__.'/../vendor/bundles', |
38 |
| -)); |
39 |
| -``` |
40 |
| - |
41 |
| -**Method 2 - composer for Symfony 2.1 and above (recommended)** |
| 8 | +**Method 1 - composer for Symfony 2.1 and above (recommended)** |
42 | 9 |
|
43 | 10 | - Add the following line to the `composer.json` file:
|
44 | 11 |
|
@@ -96,7 +63,7 @@ class AppKernel extends Kernel
|
96 | 63 | }
|
97 | 64 | ```
|
98 | 65 |
|
99 |
| -**Method 3 - submodules** |
| 66 | +**Method 2 - submodules** |
100 | 67 |
|
101 | 68 | You can also manage the two git repositories with git and submodules. It could be a mess if you don't know what you do, but I personally prefer this way
|
102 | 69 |
|
@@ -220,4 +187,4 @@ $ php app/console cypress:git:hit [--no-push] [--fast-forward] [--all] tag [comm
|
220 | 187 | Example
|
221 | 188 | -------
|
222 | 189 |
|
223 |
| -There is also a [demo bundle](https://github.com/matteosister/GitElephantDemoBundle) to see it in action |
| 190 | +There is also a [demo bundle](https://github.com/matteosister/GitElephantDemoBundle) to see it in action. |
0 commit comments