mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Use FQCN::method to build CRUD routes
This commit is contained in:
parent
2f3caafd10
commit
8b9b427a1e
@ -150,12 +150,12 @@ class CRUDRoutesLoader extends Loader
|
||||
protected function loadCrudConfig($crudConfig): RouteCollection
|
||||
{
|
||||
$collection = new RouteCollection();
|
||||
$controller = 'cscrud_'.$crudConfig['name'].'_controller';
|
||||
$controllerClass = $crudConfig['controller'];
|
||||
|
||||
foreach ($crudConfig['actions'] as $name => $action) {
|
||||
// defaults (controller name)
|
||||
$defaults = [
|
||||
'_controller' => $controller.':'.($action['controller_action'] ?? $name),
|
||||
'_controller' => $controllerClass.'::'.($action['controller_action'] ?? $name),
|
||||
];
|
||||
|
||||
if ('index' === $name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user