lyssal / structure-bundle
此包已被废弃,不再维护。未建议替代包。
用于在 Symfony 中更简单、更高效工作的各种工具
0.2.2
2016-05-19 17:28 UTC
Requires
- lyssal/lib-php: 0.*
- symfony/framework-bundle: >=2.0
Suggests
- white-october/pagerfanta-bundle: Pour gérer la pagination via EntityRepository
README
此存储库已被废弃。
您可以用以下其他存储库替代它
LyssalStructureBundle 包含各种工具,可简化 Symfony 应用程序的开发。
文档
其他包
安装
- 更新您的
composer.json
"require": { "lyssal/structure-bundle": "x.y.*" }
- 安装包
php composer.phar update
- 更新
AppKernel.php
new Lyssal\StructureBundle\LyssalStructureBundle(),
- 更新
routing.yml(如果您想使用Response服务)
lyssal_structure:
resource: "@LyssalStructureBundle/Controller"
type: "annotation"
prefix: "/LyssalStructure"
要使用默认的 LyssalStructureBundle 中的 Repository 或如果您使用 Manager,则需要定义 doctrine.orm.default_repository_class 如此
doctrine: orm: default_repository_class: "Lyssal\StructureBundle\Repository\EntityRepository"