PHP code example of codebuds / easyadmin-log-viewer-bundle
1. Go to this page and download the library: Download codebuds/easyadmin-log-viewer-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codebuds / easyadmin-log-viewer-bundle example snippets
return [
// ...
EasyAdminLogViewerBundle::class => ['all' => true],
];
namespace App\Controller\Admin;
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractDashboardController;
class DashboardController extends AbstractDashboardController
{
#[\Override]
public function configureMenuItems(): iterable
{
...
yield MenuItem::linktoRoute('Logs', 'fa fa-file-alt', 'easy_admin_log_viewer_list')->setPermission('ROLE_ADMIN');
...
}
}