mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
CRUDRoutesLoader: use the syntax controller::method instead of the deprecated controller:method
This commit is contained in:
parent
1098bafd3d
commit
655dc02538
@ -61,9 +61,8 @@ class CRUDRoutesLoader extends Loader
|
||||
/**
|
||||
* @param null $type
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function supports($resource, $type = null)
|
||||
public function supports($resource, $type = null): bool
|
||||
{
|
||||
return 'CRUD' === $type;
|
||||
}
|
||||
@ -91,7 +90,7 @@ class CRUDRoutesLoader extends Loader
|
||||
};
|
||||
|
||||
$defaults = [
|
||||
'_controller' => $controller.':'.($action['controller_action'] ?? $controllerAction),
|
||||
'_controller' => $controller.'::'.($action['controller_action'] ?? $controllerAction),
|
||||
];
|
||||
|
||||
// path are rewritten
|
||||
|
Loading…
x
Reference in New Issue
Block a user