maceliu/symfony_admin
Composer 安装命令:
composer require maceliu/symfony_admin
包简介
A set of admin system interface based on symfony
README 文档
README
A set of admin system interface based on symfony 5.*
How to use it ?
1.Install by composer
composer require maceliu/symfony_admin
2.Add routes config
config/routes/annotations.yaml
symfony_admin:
resource: ../../vendor/maceliu/symfony_admin/src/Controller/
type: annotation
3. Add service config
config/service.yaml
services:
# .....your other config.......
SymfonyAdmin\:
resource: '../vendor/maceliu/symfony_admin/src/*'
exclude: '../vendor/maceliu/symfony_admin/src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
SymfonyAdmin\Controller\:
resource: '../vendor/maceliu/symfony_admin/src/Controller'
tags: ['controller.service_arguments']
4.Add doctrine config
config/packages/doctrine.yaml
doctrine:
orm:
mappings:
SymfonyAdmin:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/vendor/maceliu/symfony_admin/src/Entity'
prefix: 'SymfonyAdmin\Entity'
alias: App
filters:
soft-deleteable:
class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
enabled: true
stof_doctrine_extensions:
orm:
default:
softdeleteable: true
5. Install db data
Execute the SQL statements in the install.sql in your database
统计信息
- 总下载量: 1.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-24