mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 17:28:23 +00:00 
			
		
		
		
	CRUDRoutesLoader: use the syntax controller::method instead of the deprecated controller:method
				
					
				
			This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user