Skip to content

Commit 886f9cf

Browse files
Avoid configuration for php 7 (#902)
1 parent 96e60a9 commit 886f9cf

4 files changed

Lines changed: 10 additions & 28 deletions

File tree

tests/App/AppKernel.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
9898
$loader->load(__DIR__.'/config/config_symfony_v4.yaml');
9999
}
100100

101-
if (version_compare(\PHP_VERSION, '8.0.0', '>=')) {
102-
$loader->load(__DIR__.'/config/config_php8.yaml');
103-
} else {
104-
$loader->load(__DIR__.'/config/config_php7.yaml');
105-
}
106-
107101
if (class_exists(HttpCacheHandler::class)) {
108102
$loader->load(__DIR__.'/config/config_sonata_block_v4.yaml');
109103
}

tests/App/config/config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,13 @@ doctrine:
3737
dbal:
3838
driver: pdo_sqlite
3939
path: '%app.base_dir%sonata_classification_test.db3'
40+
orm:
41+
entity_managers:
42+
default:
43+
mappings:
44+
SonataClassificationBundle: null
45+
SonataClassificationTest:
46+
type: attribute
47+
dir: '%kernel.project_dir%/Entity'
48+
is_bundle: false
49+
prefix: Sonata\ClassificationBundle\Tests\App\Entity

tests/App/config/config_php7.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/App/config/config_php8.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)