PHPCBF
This commit is contained in:
@@ -677,7 +677,7 @@ class AdminController extends AbstractController
|
|||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[Route('/watchdog/{type?*}/{id?*}/{action?*}', name: 'watchdog')]
|
#[Route('/watchdog/{type?*}/{id?*}/{action?*}', name: 'watchdog')]
|
||||||
public function watchdog(
|
public function watchdog(
|
||||||
@@ -700,7 +700,7 @@ class AdminController extends AbstractController
|
|||||||
$qbButtons->select('DISTINCT l.objectClass')
|
$qbButtons->select('DISTINCT l.objectClass')
|
||||||
->from('Gedmo\Loggable\Entity\LogEntry', 'l')
|
->from('Gedmo\Loggable\Entity\LogEntry', 'l')
|
||||||
->orderBy('l.objectClass', 'ASC');
|
->orderBy('l.objectClass', 'ASC');
|
||||||
|
|
||||||
$qbButtonsAction->select('DISTINCT l.action')
|
$qbButtonsAction->select('DISTINCT l.action')
|
||||||
->from('Gedmo\Loggable\Entity\LogEntry', 'l')
|
->from('Gedmo\Loggable\Entity\LogEntry', 'l')
|
||||||
->orderBy('l.action', 'ASC');
|
->orderBy('l.action', 'ASC');
|
||||||
@@ -709,7 +709,7 @@ class AdminController extends AbstractController
|
|||||||
|
|
||||||
if (null != $type && '*' != $type) {
|
if (null != $type && '*' != $type) {
|
||||||
$qb->where('l.objectClass = :type');
|
$qb->where('l.objectClass = :type');
|
||||||
$qb->setParameter('type', 'App\Entity\\' . $type);
|
$qb->setParameter('type', 'App\Entity\\' . $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null != $action && '*' != $action) {
|
if (null != $action && '*' != $action) {
|
||||||
@@ -732,10 +732,10 @@ class AdminController extends AbstractController
|
|||||||
'type' => $type,
|
'type' => $type,
|
||||||
'action' => $action,
|
'action' => $action,
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
'buttonsType' => $qbButtons->getQuery()->getResult(),
|
'buttonsType' => $qbButtons->getQuery()->getResult(),
|
||||||
'buttonsAction' => $qbButtonsAction->getQuery()->getResult(),
|
'buttonsAction' => $qbButtonsAction->getQuery()->getResult(),
|
||||||
'pagination' => $pagination,
|
'pagination' => $pagination,
|
||||||
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user