Initialize a CRUD for entities

This commit is contained in:
2019-11-19 09:32:33 +01:00
parent dc1bac05ee
commit 4575812a3b
11 changed files with 533 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
name: 'country'
actions: ['index', 'new', 'edit', 'delete']
base_path: '/admin/country'
controller: 'Chill\MainBundle\CRUD\Controller\CRUDController'

View File

@@ -0,0 +1,15 @@
services:
# Chill\MainBundle\CRUD\Routing\CRUDRoutesLoader:
#
# tags:
# - routing.loader
Chill\MainBundle\CRUD\Resolver\Resolver:
arguments:
$em: '@Doctrine\ORM\EntityManagerInterface'
Chill\MainBundle\CRUD\Templating\TwigCRUDResolver:
arguments:
$resolver: '@Chill\MainBundle\CRUD\Resolver\Resolver'
tags:
- { name: twig.extension }