GenealogyBundle
The Genealogy Bundle aim to install a horse genealogy api.
Prerequisites
This bundle requires Symfony 2.3 or more.
Installation
To install this bundle please follow the next steps:
First add the dependency in your composer.json file:
"require": {
...
"idci/genealogy-bundle": "dev-master"
},Then install the bundle with the command:
php composer updateEnable the bundles in your application kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new IDCI\Bundle\GenealogyBundle\IDCIGenealogyBundle(),
new IDCI\Bundle\ExporterBundle\IDCIExporterBundle()
);
}Update your routing.yml file:
idci_genealogy:
resource: "@IDCIGenealogyBundle/Controller/"
type: annotation
idci_exporter:
resource: "@IDCIExporterBundle/Controller/"
type: annotationEdit your parameters.yml file:
parameters:
...
locale: fr
element_class: "IDCI\Bundle\HorseGenealogyBundle\Entity\Element"Finally add the bundle config in your config.yml file:
imports:
...
- { resource: @IDCIGenealogyBundle/Resources/config/config.yml }Now the Bundle is installed.