Skip to content

Commit

Permalink
simplify building theme independent plugins (#2888)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Oct 30, 2021
1 parent 7ed1998 commit 40061e4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions config/packages/twig.yaml
Expand Up @@ -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
7 changes: 0 additions & 7 deletions config/services.yaml
Expand Up @@ -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
# ================================================================================
Expand Down
2 changes: 1 addition & 1 deletion src/Event/ConfigureMainMenuEvent.php
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/EventSubscriber/MenuBuilderSubscriber.php
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/Event/ConfigureMainMenuEventTest.php
Expand Up @@ -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;

Expand Down

0 comments on commit 40061e4

Please sign in to comment.