mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
add doc + make steps identical between actions
This commit is contained in:
parent
13e81b3b49
commit
aad7417869
@ -225,9 +225,9 @@ class CRUDController extends AbstractController
|
|||||||
* @param QueryBuilder|mixed $query by default, an instance of QueryBuilder
|
* @param QueryBuilder|mixed $query by default, an instance of QueryBuilder
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @param PaginatorInterface $paginator
|
* @param PaginatorInterface $paginator
|
||||||
* @return QueryBuilder
|
* @return QueryBuilder|mixed
|
||||||
*/
|
*/
|
||||||
protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator): QueryBuilder
|
protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator)
|
||||||
{
|
{
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,10 @@ class Configuration implements ConfigurationInterface
|
|||||||
->arrayPrototype()
|
->arrayPrototype()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('class')->cannotBeEmpty()->isRequired()->end()
|
->scalarNode('class')->cannotBeEmpty()->isRequired()->end()
|
||||||
->scalarNode('controller')->cannotBeEmpty()->isRequired()->end()
|
->scalarNode('controller')
|
||||||
|
->cannotBeEmpty()
|
||||||
|
->defaultValue(\Chill\MainBundle\CRUD\Controller\CRUDController::class)
|
||||||
|
->end()
|
||||||
->scalarNode('name')->cannotBeEmpty()->isRequired()->end()
|
->scalarNode('name')->cannotBeEmpty()->isRequired()->end()
|
||||||
->scalarNode('base_path')->cannotBeEmpty()->isRequired()->end()
|
->scalarNode('base_path')->cannotBeEmpty()->isRequired()->end()
|
||||||
->scalarNode('base_role')->defaultNull()->end()
|
->scalarNode('base_role')->defaultNull()->end()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user