- php 7
- symfony 3.2
- Прописать пакет и ссылку на репозиторий в
composer.json
{
// ...
"require": {
// ...
"SmartInformationSystems/tags-bundle": "dev-master"
},
"repositories": [
{
"type" : "vcs",
"url" : "https://github.com/SmartInformationSystems/TagsBundle.git"
}
]
}
- Включить бандл в
app/AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new SmartInformationSystems\FileBundle\SmartInformationSystemsTagsBundle(),
// ...
);
}
}
- Включить необходимые шаблоны
twig:
form_themes:
- 'SmartInformationSystemsTagsBundle:form:fields.html.twig'
- Добавить настроки в
app/config/routing.yml
smart_information_systems.tags:
resource: "@SmartInformationSystemsTagsBundle/Resources/config/routing.yml"
prefix: /tags