Skip to content

Commit

Permalink
[Doc] Update installation
Browse files Browse the repository at this point in the history
  • Loading branch information
GeLoLabs committed Aug 14, 2015
1 parent 17b4ea9 commit 0d8ede1
Showing 1 changed file with 2 additions and 62 deletions.
64 changes: 2 additions & 62 deletions Resources/doc/installation.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# Installation

## Symfony 2.1.*

Require the bundle in your composer.json file:

```
{
"require": {
"egeloen/ckeditor-bundle": "~2.0",
}
}
$ composer require egeloen/ckeditor-bundle --no-update
```

Register the bundle:
Expand All @@ -29,59 +23,5 @@ public function registerBundles()
Install the bundle:

```
$ composer update
```

## Symfony 2.0.*

Add Ivory CKEditor bundle to your deps file:

```
[IvoryCKEditorBundle]
git=http://github.com/egeloen/IvoryCKEditorBundle.git
target=bundles/Ivory/CKEditorBundle
version=1.1.9
```

I recommend you to specify a version in order to easily maintain your project. The versions are available in the
[CHANGELOG](https://github.com/egeloen/IvoryCKEditorBundle/blob/master/CHANGELOG.md).

Autoload the Ivory CKEditor bundle namespaces:

``` php
// app/autoload.php

$loader->registerNamespaces(array(
'Ivory\\CKEditorBundle' => __DIR__.'/../vendor/bundles',
// ...
);
$ composer update egeloen/ckeditor-bundle
```

Register the bundle:

``` php
// app/AppKernel.php

public function registerBundles()
{
return array(
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
// ...
);
}
```

Run the vendors script:

``` bash
$ php bin/vendors install
```

Warning, if you don't register the bundle in the kernel before installing it, the assets will not be populated in
your `web` directory. To fix it, simply run:

``` bash
$ php app/console assets:install --symlink
```

Be aware that the Symfony 2.0 version of the bundle is no longer maintain.

0 comments on commit 0d8ede1

Please sign in to comment.