symfony_admin
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