Skip to content

Commit

Permalink
Merge branch '3.0-unstable' into 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkhill committed Jan 27, 2016
2 parents 479b647 + 2d2ff20 commit 53abf0f
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
@@ -1,10 +1,8 @@
node_modules/
vendor/
_site/
tmp/
build/
cache/
docs/
.idea/

*.sublime-*
Expand Down
71 changes: 71 additions & 0 deletions src/Symfony/Bundle/Resources/docs/README.md
@@ -0,0 +1,71 @@
Installation
============

Step 1: Download the Bundle
---------------------------

Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:

```bash
$ composer require khill/lavacharts "~3.0"
```

This command requires you to have Composer installed globally, as explained
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
of the Composer documentation.

Step 2: Enable the Bundle
-------------------------

Then, enable the bundle by adding it to the list of registered bundles
in the `app/AppKernel.php` file of your project:

```php
<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...

new Khill\Lavacharts\Symfony\Bundle\LavachartsBundle(),
);

// ...
}

// ...
}
```

Step 3: Import the Service
-------------------------

Lastly, import the service by adding the `services.yml` to the imports
in the `app/config/config.yml` file of your project:

```php
imports:
// ...

- { resource: "@LavachartsBundle/Resources/config/services.yml" }

```

Step 4: Pull from the Container
-------------------------

Now you can use Lavacharts from within your controller:

```php
$lava = $this->get('lavacharts');

$datatable = $lava->DataTable();

// ...
```

0 comments on commit 53abf0f

Please sign in to comment.