Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
git /
cesa-v3 /
cesa-v3 /
src /
CoreBundle /
Admin /
Delete
Unzip
Name
Size
Permission
Date
Action
ErrorLogAdmin.php
3.36
KB
-rw-r--r--
2026-05-18 12:51
Save
Rename
<?php namespace App\CoreBundle\Admin; use Sonata\AdminBundle\Admin\AbstractAdmin; use Sonata\AdminBundle\Route\RouteCollectionInterface; use Sonata\AdminBundle\Show\ShowMapper; use Sonata\AdminBundle\Form\FormMapper; use Sonata\AdminBundle\Datagrid\ListMapper; use Sonata\AdminBundle\Datagrid\DatagridMapper; use Sonata\AdminBundle\Datagrid\ProxyQueryInterface; /** * ErrorLog Admin * * @author Otto Saayman <otto@igotafrica.com> * @package CoreBundle * @subpackage Admin * @version 0.0.1 */ class ErrorLogAdmin extends AbstractAdmin { protected function generateBaseRouteName(bool $isChildAdmin = false): string { return 'error_log'; } protected function generateBaseRoutePattern(bool $isChildAdmin = false): string { return 'error_log'; } protected function configureListFields(ListMapper $listMapper): void { $listMapper ->add('id', null, ['label' => 'ID']) ->add('errmessage', null, [ 'label' => 'Error Message', ]) ->add('is_info', null, [ 'label' => 'Type', ]) ->add('created_at', null, [ 'label' => 'Created At', 'format' => 'Y-m-d H:i:s' ]) ->add('updated_at', null, [ 'label' => 'Updated At', 'format' => 'Y-m-d H:i:s' ]) ->add('created_by', null, ['label' => 'Created By']) ->add('session_id', null, ['label' => 'Session ID']) ->add('_action', 'actions', [ 'actions' => [ 'show' => [], 'delete' => [] ] ]) ; } protected function configureShowFields(ShowMapper $showMapper): void { $showMapper ->add('id', null, ['label' => 'ID']) ->add('errmessage', null, [ 'label' => 'Error Message', ]) ->add('is_info', null, [ 'label' => 'Type', ]) ->add('created_at', null, [ 'label' => 'Created At', 'format' => 'Y-m-d H:i:s' ]) ->add('updated_at', null, [ 'label' => 'Updated At', 'format' => 'Y-m-d H:i:s' ]) ->add('created_by', null, ['label' => 'Created By']) ->add('session_id', null, ['label' => 'Session ID']) ->add('url_id', null, ['label' => 'URL ID']) ; } protected function configureDatagridFilters(DatagridMapper $datagridMapper): void { $datagridMapper ->add('errmessage', null, ['label' => 'Error Message']) ->add('is_info', null, ['label' => 'Type']) ->add('created_at', null, ['label' => 'Created At']) ->add('created_by', null, ['label' => 'Created By']) ->add('session_id', null, ['label' => 'Session ID']) ; } protected function configureQuery(ProxyQueryInterface $query): ProxyQueryInterface { // Order by latest entries first $query->orderBy($query->getRootAlias() . '.created_at', 'DESC'); return parent::configureQuery($query); } protected function configureRoutes(RouteCollectionInterface $collection): void { $collection ->remove('create') ->remove('edit') ; } }