simplify building theme independent plugins (#2888)
This commit is contained in:
@@ -7,3 +7,4 @@ twig:
|
||||
paths:
|
||||
# used in templates/emails/layout.html.twig
|
||||
'%kernel.project_dir%/assets/css': css
|
||||
'%kernel.project_dir%/vendor/kevinpapst/adminlte-bundle/Resources/views': theme
|
||||
|
||||
@@ -108,13 +108,6 @@ services:
|
||||
arguments:
|
||||
- !service { class: PDO, factory: ['@database_connection', 'getWrappedConnection'] }
|
||||
|
||||
# ================================================================================
|
||||
# THEME
|
||||
# ================================================================================
|
||||
|
||||
KevinPapst\AdminLTEBundle\Helper\ContextHelper:
|
||||
alias: admin_lte_theme.context_helper
|
||||
|
||||
# ================================================================================
|
||||
# TIMESHEET RECORD CALCULATOR
|
||||
# ================================================================================
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
namespace App\Event;
|
||||
|
||||
use App\Utils\MenuItemModel;
|
||||
use KevinPapst\AdminLTEBundle\Event\SidebarMenuEvent;
|
||||
use KevinPapst\AdminLTEBundle\Model\MenuItemModel;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Contracts\EventDispatcher\Event;
|
||||
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
namespace App\EventSubscriber;
|
||||
|
||||
use App\Event\ConfigureMainMenuEvent;
|
||||
use App\Utils\MenuItemModel;
|
||||
use App\Utils\MenuItemModel as KimaiMenuItemModel;
|
||||
use KevinPapst\AdminLTEBundle\Event\SidebarMenuEvent;
|
||||
use KevinPapst\AdminLTEBundle\Model\MenuItemInterface;
|
||||
use KevinPapst\AdminLTEBundle\Model\MenuItemModel;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
namespace App\Tests\Event;
|
||||
|
||||
use App\Event\ConfigureMainMenuEvent;
|
||||
use App\Utils\MenuItemModel;
|
||||
use KevinPapst\AdminLTEBundle\Event\SidebarMenuEvent;
|
||||
use KevinPapst\AdminLTEBundle\Model\MenuItemModel;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user