Skip to content

Commit

Permalink
Avoid configuration for php 7 (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Mar 25, 2023
1 parent 617c272 commit 7fdaf7a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 26 deletions.
6 changes: 0 additions & 6 deletions tests/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
$loader->load(__DIR__.'/config/config_symfony_v4.yml');
}

if (version_compare(\PHP_VERSION, '8.0.0', '>=')) {
$loader->load(__DIR__.'/config/config_php8.yml');
} else {
$loader->load(__DIR__.'/config/config_php7.yml');
}

if (class_exists(HttpCacheHandler::class)) {
$loader->load($this->getProjectDir().'/config/config_sonata_block_v4.yaml');
}
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 @@ -19,3 +19,12 @@ parameters:
doctrine:
dbal:
url: "%env(resolve:DATABASE_URL)%"
orm:
auto_generate_proxy_classes: true
auto_mapping: true
mappings:
SonataORMTest:
type: attribute
dir: "%kernel.project_dir%/Entity"
is_bundle: false
prefix: Sonata\DoctrineORMAdminBundle\Tests\App\Entity
10 changes: 0 additions & 10 deletions tests/App/config/config_php7.yml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/App/config/config_php8.yml

This file was deleted.

0 comments on commit 7fdaf7a

Please sign in to comment.