Skip to content

Commit

Permalink
Remove some things from sf4.4 (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Apr 21, 2023
1 parent 5067e22 commit 348f945
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/Resources/config/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

$containerConfigurator->services()

->set('sonata.admin.manipulator.acl.object.orm', '%sonata.admin.manipulator.acl.object.orm.class%')
->set('sonata.admin.manipulator.acl.object.orm', (string) param('sonata.admin.manipulator.acl.object.orm.class'))
->public()
->args([
service('doctrine'),
Expand Down
7 changes: 1 addition & 6 deletions tests/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
use Symfony\Component\Security\Http\Attribute\IsGranted;
use Symfony\Component\Security\Http\Authentication\AuthenticatorManager;

final class AppKernel extends Kernel
{
Expand Down Expand Up @@ -89,12 +88,8 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa

$loader->load(__DIR__.'/config/config.yml');

if (class_exists(IsGranted::class)) {
$loader->load(__DIR__.'/config/config_symfony_v6.yml');
} elseif (class_exists(AuthenticatorManager::class)) {
if (!class_exists(IsGranted::class)) {
$loader->load(__DIR__.'/config/config_symfony_v5.yml');
} else {
$loader->load(__DIR__.'/config/config_symfony_v4.yml');
}

if (class_exists(HttpCacheHandler::class)) {
Expand Down
9 changes: 9 additions & 0 deletions tests/App/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ framework:
test: true
translator:
enabled: true
session:
storage_factory_id: session.storage.factory.mock_file
router:
utf8: true

security:
firewalls:
main:
lazy: true

twig:
exception_controller: null
Expand Down
8 changes: 0 additions & 8 deletions tests/App/config/config_symfony_v4.yml

This file was deleted.

9 changes: 0 additions & 9 deletions tests/App/config/config_symfony_v5.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
framework:
session:
storage_factory_id: session.storage.factory.mock_file
router:
utf8: true

security:
enable_authenticator_manager: true
firewalls:
main:
lazy: true
10 changes: 0 additions & 10 deletions tests/App/config/config_symfony_v6.yml

This file was deleted.

0 comments on commit 348f945

Please sign in to comment.