mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
location admin: admin crud for location
This commit is contained in:
19
src/Bundle/ChillMainBundle/Controller/LocationController.php
Normal file
19
src/Bundle/ChillMainBundle/Controller/LocationController.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Chill\MainBundle\Controller;
|
||||
|
||||
use Chill\MainBundle\CRUD\Controller\CRUDController;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class LocationController extends CRUDController
|
||||
{
|
||||
public function customizeQuery(string $action, Request $request, $query): void
|
||||
{
|
||||
$query->where('e.availableForUsers', "'TRUE'");
|
||||
}
|
||||
|
||||
// public function createEntity(string $action, Request $request): object
|
||||
// {
|
||||
|
||||
// }
|
||||
}
|
Reference in New Issue
Block a user