Skip to content

Commit b076ffc

Browse files
Merge branch '7.4' into 8.0
* 7.4: [FrameworkBundle] Fix test on read-only directory on Windows [Config] Deprecate config builder generators
2 parents a19cf7d + 8204049 commit b076ffc

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Builder/ConfigBuilderGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
* Generate ConfigBuilders to help create valid config.
3131
*
3232
* @author Tobias Nyholm <[email protected]>
33+
*
34+
* @deprecated since Symfony 7.4
3335
*/
3436
class ConfigBuilderGenerator implements ConfigBuilderGeneratorInterface
3537
{

Builder/ConfigBuilderGeneratorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Generates ConfigBuilders to help create valid config.
1818
*
1919
* @author Tobias Nyholm <[email protected]>
20+
*
21+
* @deprecated since Symfony 7.4
2022
*/
2123
interface ConfigBuilderGeneratorInterface
2224
{

Builder/ConfigBuilderInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* A ConfigBuilder provides helper methods to build a large complex array.
1616
*
1717
* @author Tobias Nyholm <[email protected]>
18+
*
19+
* @deprecated since Symfony 7.4
1820
*/
1921
interface ConfigBuilderInterface
2022
{

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CHANGELOG
1919
* Add array-shapes to generated config builders
2020
* Deprecate accessing the internal scope of the loader in PHP config files, use only its public API instead
2121
* Deprecate setting a default value to a node that is required, and vice versa
22-
* Deprecate generating fluent methods in config builders
22+
* Deprecate fluent config builders, return PHP arrays from your config instead
2323

2424
7.3
2525
---

Tests/Builder/GeneratedConfigTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@
1111

1212
namespace Symfony\Component\Config\Tests\Builder;
1313

14-
use PHPUnit\Framework\Attributes\CoversClass;
1514
use PHPUnit\Framework\Attributes\DataProvider;
1615
use PHPUnit\Framework\Attributes\Group;
1716
use PHPUnit\Framework\Attributes\IgnoreDeprecations;
1817
use PHPUnit\Framework\TestCase;
1918
use Symfony\Component\Config\Builder\ClassBuilder;
2019
use Symfony\Component\Config\Builder\ConfigBuilderGenerator;
2120
use Symfony\Component\Config\Builder\ConfigBuilderInterface;
22-
use Symfony\Component\Config\Builder\Method;
23-
use Symfony\Component\Config\Builder\Property;
2421
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
2522
use Symfony\Component\Config\Tests\Builder\Fixtures\AddToList;
2623
use Symfony\Component\Config\Tests\Builder\Fixtures\NodeInitialValues;
@@ -35,10 +32,8 @@
3532
*
3633
* @author Tobias Nyholm <[email protected]>
3734
*/
38-
#[CoversClass(ClassBuilder::class)]
39-
#[CoversClass(ConfigBuilderGenerator::class)]
40-
#[CoversClass(Method::class)]
41-
#[CoversClass(Property::class)]
35+
#[IgnoreDeprecations]
36+
#[Group('legacy')]
4237
class GeneratedConfigTest extends TestCase
4338
{
4439
private array $tempDir = [];

0 commit comments

Comments
 (0)