Skip to content

Commit

Permalink
Merge pull request #30 from grummbeer/contao54-compat
Browse files Browse the repository at this point in the history
Contao 5.4 TypeError: ($security) must be of type Symfony\Component\Security\Core\Security, Symfony\Bundle\SecurityBundle\Security given
  • Loading branch information
dmolineus authored Sep 23, 2024
2 parents a0627e9 + 2d0c052 commit 92eaf29
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Items/PageItemsLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Doctrine\DBAL\Result;
use Hofff\Contao\Navigation\QueryBuilder\PageQueryBuilder;
use Hofff\Contao\Navigation\Security\PagePermissionGuard;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface AS Security;

use function array_diff;
use function array_fill_keys;
Expand Down
2 changes: 1 addition & 1 deletion src/QueryBuilder/BaseQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Query\QueryBuilder;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface AS Security;

use function time;

Expand Down
2 changes: 1 addition & 1 deletion src/QueryBuilder/PageQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Doctrine\DBAL\ArrayParameterType;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Query\QueryBuilder;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface AS Security;

use function array_flip;
use function array_keys;
Expand Down
2 changes: 1 addition & 1 deletion src/Security/PagePermissionGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Contao\FrontendUser;
use Contao\ModuleModel;
use Contao\StringUtil;
use Symfony\Component\Security\Core\Security;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface AS Security;

use function array_intersect;

Expand Down

0 comments on commit 92eaf29

Please sign in to comment.