This package contains a module that connects the Harmony user interface to the Symfony 2 PHP framework.
Include the package in your composer.json:
composer.json
{
"require-dev": {
"harmony/harmony": "~1.0",
"harmony/symfony-module": "~2.0"
}
}
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer update
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Harmony\Bundle\SymfonyBundle\HarmonySymfonyBundle(),
);
// ...
}
// ...
}
Now, create a modules.php file at the root of your package and instantiate the Symfony module:
modules.php
<?php
return [
new Harmony\Bundle\SymfonyBundle\SymfonyModule()
];
You are done! Now, start Harmony. Harmony modules should be able to detect your Symfony services and act accordingly!