simplify building theme independent plugins (#2888)

This commit is contained in:
Kevin Papst
2021-10-30 14:48:05 +02:00
committed by GitHub
parent 7ed1998d04
commit 40061e43bb
5 changed files with 4 additions and 10 deletions

View File

@@ -7,3 +7,4 @@ twig:
paths: paths:
# used in templates/emails/layout.html.twig # used in templates/emails/layout.html.twig
'%kernel.project_dir%/assets/css': css '%kernel.project_dir%/assets/css': css
'%kernel.project_dir%/vendor/kevinpapst/adminlte-bundle/Resources/views': theme

View File

@@ -108,13 +108,6 @@ services:
arguments: arguments:
- !service { class: PDO, factory: ['@database_connection', 'getWrappedConnection'] } - !service { class: PDO, factory: ['@database_connection', 'getWrappedConnection'] }
# ================================================================================
# THEME
# ================================================================================
KevinPapst\AdminLTEBundle\Helper\ContextHelper:
alias: admin_lte_theme.context_helper
# ================================================================================ # ================================================================================
# TIMESHEET RECORD CALCULATOR # TIMESHEET RECORD CALCULATOR
# ================================================================================ # ================================================================================

View File

@@ -9,8 +9,8 @@
namespace App\Event; namespace App\Event;
use App\Utils\MenuItemModel;
use KevinPapst\AdminLTEBundle\Event\SidebarMenuEvent; use KevinPapst\AdminLTEBundle\Event\SidebarMenuEvent;
use KevinPapst\AdminLTEBundle\Model\MenuItemModel;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Contracts\EventDispatcher\Event; use Symfony\Contracts\EventDispatcher\Event;

View File

@@ -10,10 +10,10 @@
namespace App\EventSubscriber; namespace App\EventSubscriber;
use App\Event\ConfigureMainMenuEvent; use App\Event\ConfigureMainMenuEvent;
use App\Utils\MenuItemModel;
use App\Utils\MenuItemModel as KimaiMenuItemModel; use App\Utils\MenuItemModel as KimaiMenuItemModel;
use KevinPapst\AdminLTEBundle\Event\SidebarMenuEvent; use KevinPapst\AdminLTEBundle\Event\SidebarMenuEvent;
use KevinPapst\AdminLTEBundle\Model\MenuItemInterface; use KevinPapst\AdminLTEBundle\Model\MenuItemInterface;
use KevinPapst\AdminLTEBundle\Model\MenuItemModel;
use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;

View File

@@ -10,8 +10,8 @@
namespace App\Tests\Event; namespace App\Tests\Event;
use App\Event\ConfigureMainMenuEvent; use App\Event\ConfigureMainMenuEvent;
use App\Utils\MenuItemModel;
use KevinPapst\AdminLTEBundle\Event\SidebarMenuEvent; use KevinPapst\AdminLTEBundle\Event\SidebarMenuEvent;
use KevinPapst\AdminLTEBundle\Model\MenuItemModel;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;