idci / genealogy-bundle
Symfony GenealogyBundle
dev-master
2014-02-12 14:15 UTC
Requires
- php: >=5.3.2
- doctrine/doctrine-bundle: *
- idci/exporter-bundle: @dev
- symfony/framework-bundle: >=2.1
- twig/twig: *
This package is auto-updated.
Last update: 2024-08-24 20:16:39 UTC
README
Genealogy Bundle 的目标是安装一匹马的谱系 API。
先决条件
此包需要 Symfony 2.3 或更高版本。
安装
要安装此包,请按照以下步骤操作
首先在您的 composer.json
文件中添加依赖项
"require": { ... "idci/genealogy-bundle": "dev-master" },
然后使用以下命令安装包
php composer update
在您的应用程序内核中启用包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new IDCI\Bundle\GenealogyBundle\IDCIGenealogyBundle(), new IDCI\Bundle\ExporterBundle\IDCIExporterBundle() ); }
更新您的 routing.yml 文件
idci_genealogy: resource: "@IDCIGenealogyBundle/Controller/" type: annotation idci_exporter: resource: "@IDCIExporterBundle/Controller/" type: annotation
编辑您的 parameters.yml 文件
parameters: ... locale: fr element_class: "IDCI\Bundle\HorseGenealogyBundle\Entity\Element"
最后在您的 config.yml
文件中添加包配置
imports: ... - { resource: @IDCIGenealogyBundle/Resources/config/config.yml }
现在包已安装。