Skip to content

Commit 2b4177e

Browse files
adamwojsalongosz
andauthored
IBX-8471: Upgraded codebase to Symfony 7 (#530)
* IBX-8471: [Composer] Dropped obsolete symfony/proxy-manager-bridge * IBX-8471: [Composer] Bumped Symfony packages requirements to ^7.2 * IBX-8471: [Composer] Bumped 3rd party packages compatible with for Symfony 7 * [symfony/http-kernel] Fixed incompatible Ibexa\Bundle\IO\IbexaIOBundle::$extension declaration * [symfony/http-kernel] Fixed incompatible Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface implementations * [symfony/console] Fixed incompatible Symfony\Component\Console\Output\Output implementations * [doctrine/dbal] Fixed usage of deprecated \Doctrine\DBAL\Query\QueryBuilder::execute method * [doctrine/dbal] Fixed redundant arguments in Doctrine\DBAL\Query\QueryBuilder::executeQuery() call * [doctrine/dbal] Replaced usage of deprecated fetchColumn method with fetchOne (tests) * IBX-8471: Upgraded SiteAccess Matcher serializers to Symfony 7 * IBX-8471: [Composer] Added doctrine/annotations to "require" section * JMS `DefaultPhpFileExtractor` extended by our `ExceptionMessageTemplateFileVisitor` relies on `DocParser` which was moved to the annotations package and discouraged in favor of PHP 8 Attributes * [doctrine/dbal] Fixed references to removed Doctrine\DBAL\Platforms\{MySqlPlatform,PostgreSqlPlatform} classes * [tests] Adapted Ibexa\Tests\Core\MVC\Symfony\Templating\Twig\Extension\QueryRenderingExtensionTest to Symfony 7 * [tests] Fixed Ibexa\Tests\Bundle\IO\DependencyInjection\ConfigurationFactory\MetadataHandler\LegacyDFSClusterTest::validateConfiguredHandler tests * [tests] Fixed incompatible \Ibexa\Tests\Integration\RepositoryInstaller\TestCase::$class property type declaration * [doctrine/dbal] Replaced usage of removed Doctrine\DBAL\Driver\ResultStatement class * [doctrine/dbal] Removed colons prefix from bound parameter names * [doctrine/dbal] Fixed null passed to Doctrine\DBAL\Query\QueryBuilder::setFirstResult * IBX-9811: Refactored Location Doctrine Gateway getSubtreeContent method to remove PDO::FETCH_GROUP usage * Extracted getSubtreeContent `$onlyIds` behavior to a separate method as it applies to a different use case on a similar query. * [doctrine/dbal] Replcated ->fetch(FetchMode::ASSOCIATIVE) with fetchAssociative * [doctrine/dbal] Adapted Ibexa\Tests\Integration\Core\Persistence\Filter\Doctrine\FilteringQueryBuilderTest::testJoinOnce to doctrine/dbal v3 * Added type declaration to \Ibexa\Contracts\Core\FieldType\GatewayBasedStorage::$gateway property * Added type declaration to Ibexa\Core\Search\Common\Indexer properties * [doctrine/dbal] Fixed usage of deprecated fetch / fetchColumns methods in UpdateTimestampsToUTCCommand * [doctrine/dbal] Fixed reference to undefined Doctrine\DBAL\ForwardCompatibility\Result class * [symfony/dependency-injection] Removed references Symfony\Component\DependencyInjection\ContainerAwareInterface * [doctrine/dbal] Fixed type hints in Ibexa\Bundle\IO\Migration\FileLister\FileRowReader\LegacyStorageFileRowReader * [symfony/dependency-injection] Fixed reference to removed Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper class * [doctrine/dbal] Fixed usage of deprecated fetch(...)/fetchAll(...) methods * [doctrine/dbal] Enabled save points in database connection * [doctrine/dbal] Enabled FK middleware for SQLite * IBX-9811: [Tests] Called `DbPlatformInterface::configure` method in DatabaseConnectionFactory. For SQLite-based tests it enables foreign keys via EnableForeignKeys middleware. * [Tests] Aligned FileSystemTwigIntegrationTestCase with Symfony 7 * [PHPStan] Removed resolved issues from the baseline * [Tests] Changed visibility of FileSystemTwigIntegrationTestCase::buildTwigErrorFromException method to protected --------- Co-authored-by: Andrew Longosz <[email protected]>
1 parent a1959a6 commit 2b4177e

File tree

129 files changed

+1705
-2056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+1705
-2056
lines changed

composer.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
"ext-mbstring": "*",
2121
"ext-xsl": "*",
2222
"composer/package-versions-deprecated": "^1.11",
23-
"doctrine/dbal": "^2.13.0",
24-
"doctrine/doctrine-bundle": "^2.0",
23+
"doctrine/annotations": "^2.0",
24+
"doctrine/dbal": "^3.7.0",
25+
"doctrine/doctrine-bundle": "^2.11.0",
2526
"doctrine/orm": "^2.7",
2627
"friendsofphp/proxy-manager-lts": "^1.0",
27-
"friendsofsymfony/http-cache-bundle": "^2.8",
28+
"friendsofsymfony/http-cache-bundle": "^3.0",
2829
"friendsofsymfony/jsrouting-bundle": "^3.5",
2930
"ibexa/doctrine-schema": "~5.0.x-dev",
3031
"jms/translation-bundle": "^2.4",
@@ -35,27 +36,27 @@
3536
"pagerfanta/pagerfanta": "^3.6.2",
3637
"psr/event-dispatcher": "^1.0",
3738
"symfony-cmf/routing": "^3.0",
38-
"symfony/cache": "^6.4.0",
39-
"symfony/console": "^6.4.0",
40-
"symfony/dependency-injection": "^6.4.0",
41-
"symfony/event-dispatcher": "^6.4.0",
42-
"symfony/expression-language": "^6.4.0",
43-
"symfony/framework-bundle": "^6.4.0",
44-
"symfony/http-client": "^6.4.0",
45-
"symfony/http-foundation": "^6.4.0",
46-
"symfony/http-kernel": "^6.4.0",
47-
"symfony/mime": "^6.4.0",
39+
"symfony/cache": "^7.2",
40+
"symfony/console": "^7.2",
41+
"symfony/dependency-injection": "^7.2",
42+
"symfony/event-dispatcher": "^7.2",
43+
"symfony/expression-language": "^7.2",
44+
"symfony/framework-bundle": "^7.2",
45+
"symfony/http-client": "^7.2",
46+
"symfony/http-foundation": "^7.2",
47+
"symfony/http-kernel": "^7.2",
48+
"symfony/mime": "^7.2",
4849
"symfony/polyfill-php80": "^1.27",
49-
"symfony/process": "^6.4.0",
50-
"symfony/security-bundle": "^6.4.0",
51-
"symfony/security-core": "^6.4.0",
52-
"symfony/security-http": "^6.4.0",
53-
"symfony/serializer": "^6.4.0",
50+
"symfony/process": "^7.2",
51+
"symfony/security-bundle": "^7.2",
52+
"symfony/security-core": "^7.2",
53+
"symfony/security-http": "^7.2",
54+
"symfony/serializer": "^7.2",
5455
"symfony/templating": "^6.4.0",
55-
"symfony/translation": "^6.4.0",
56-
"symfony/validator": "^6.4.0",
57-
"symfony/var-dumper": "^6.4.0",
58-
"symfony/yaml": "^6.4.0",
56+
"symfony/translation": "^7.2",
57+
"symfony/validator": "^7.2",
58+
"symfony/var-dumper": "^7.2",
59+
"symfony/yaml": "^7.2",
5960
"twig/extra-bundle": "^3.0",
6061
"twig/twig": ">=3.0 <3.16 || ^3.19.0"
6162
},
@@ -65,14 +66,13 @@
6566
"ibexa/code-style": "~2.0.0",
6667
"ibexa/rector": "~5.0.x-dev",
6768
"jenner/simple_fork": "^1.2",
68-
"matthiasnoback/symfony-dependency-injection-test": "^4.1",
69+
"matthiasnoback/symfony-dependency-injection-test": "^5.0",
6970
"phpstan/phpstan": "^2.0",
7071
"phpstan/phpstan-phpunit": "^2.0",
7172
"phpstan/phpstan-symfony": "^2.0",
7273
"phpunit/phpunit": "^9.6",
73-
"symfony/phpunit-bridge": "^5.4",
74-
"symfony/proxy-manager-bridge": "^6.4",
75-
"symfony/runtime": "^6.4.0"
74+
"symfony/phpunit-bridge": "^7.2",
75+
"symfony/runtime": "^7.2"
7676
},
7777
"conflict": {
7878
"doctrine/dbal": "2.7.0",

0 commit comments

Comments
 (0)