8000 [DI] Remove deprecated isFrozen() · symfony/symfony@04b39a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 04b39a3

Browse files
ro0NLnicolas-grekas
authored andcommitted
[DI] Remove deprecated isFrozen()
1 parent 8514e22 commit 04b39a3

21 files changed

+5
-207
lines changed

src/Symfony/Component/DependencyInjection/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
4.0.0
5+
-----
6+
7+
* removed `Container::isFrozen`
8+
49
3.3.0
510
-----
611

src/Symfony/Component/DependencyInjection/Container.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,6 @@ public function isCompiled()
114114
return $this->compiled;
115115
}
116116

117-
/**
118-
* Returns true if the container paramete 57A7 r bag are frozen.
119-
*
120-
* Deprecated since 3.3, to be removed in 4.0.
121-
*
122-
* @return bool true if the container parameter bag are frozen, false otherwise
123-
*/
124-
public function isFrozen()
125-
{
126-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
127-
128-
return $this->parameterBag instanceof FrozenParameterBag;
129-
}
130-
131117
/**
132118
* Gets the service container parameter bag.
133119
*

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -920,16 +920,6 @@ public function isCompiled()
920920
return true;
921921
}
922922
923-
/*{$this->docStar}
924-
* {@inheritdoc}
925-
*/
926-
public function isFrozen()
927-
{
928-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
929-
930-
return true;
931-
}
932-
933923
EOF;
934924
}
935925

src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,6 @@ public function testCompile()
8383
$this->assertEquals(array('foo' => 'bar'), $sc->getParameterBag()->all(), '->compile() copies the current parameters to the new parameter bag');
8484
}
8585

86-
/**
87-
* @group legacy
88-
* @expectedDeprecation The Symfony\Component\DependencyInjection\Container::isFrozen() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.
89-
* @expectedDeprecation The Symfony\Component\DependencyInjection\Container::isFrozen() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.
90-
*/
91-
public function testIsFrozen()
92-
{
93-
$sc = new Container(new ParameterBag(array('foo' => 'bar')));
94-
$this->assertFalse($sc->isFrozen(), '->isFrozen() returns false if the parameters are not frozen');
95-
$sc->compile();
96-
$this->assertTrue($sc->isFrozen(), '->isFrozen() returns true if the parameters are frozen');
97-
}
98-
9986
public function testIsCompiled()
10087
{
10188
$sc = new Container(new ParameterBag(array('foo' => 'bar')));

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1-1.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,4 @@ public function isCompiled()
4848
{
4949
return true;
5050
}
51-
52-
/**
53-
* {@inheritdoc}
54-
*/
55-
public function isFrozen()
56-
{
57-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
58-
59-
return true;
60-
}
6151
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,4 @@ public function isCompiled()
4646
{
4747
return true;
4848
}
49-
50-
/**
51-
* {@inheritdoc}
52-
*/
53-
public function isFrozen()
54-
{
55-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
56-
57-
return true;
58-
}
5949
}

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public function isCompiled()
5252
return true;
5353
}
5454

55-
/**
56-
* {@inheritdoc}
57-
*/
58-
public function isFrozen()
59-
{
60-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
61-
62-
return true;
63-
}
64-
6555
/**
6656
* Gets the 'test' service.
6757
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services12.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ public function isCompiled()
5656
return true;
5757
}
5858

59-
/**
60-
* {@inheritdoc}
61-
*/
62-
public function isFrozen()
63-
{
64-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
65-
66-
return true;
67-
}
68-
6959
/**
7060
* Gets the 'test' service.
7161
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services13.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ public function isCompiled()
5050
return true;
5151
}
5252

53-
/**
54-
* {@inheritdoc}
55-
*/
56-
public function isFrozen()
57-
{
58-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
59-
60-
return true;
61-
}
62-
6353
/**
6454
* Gets the 'bar' service.
6555
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services19.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ public function isCompiled()
5151
return true;
5252
}
5353

54-
/**
55-
* {@inheritdoc}
56-
*/
57-
public function isFrozen()
58-
{
59-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
60-
61-
return true;
62-
}
63-
6454
/**
6555
* Gets the 'service_from_anonymous_factory' service.
6656
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services24.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ public function isCompiled()
5050
return true;
5151
}
5252

53-
/**
54-
* {@inheritdoc}
55-
*/
56-
public function isFrozen()
57-
{
58-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
59-
60-
return true;
61-
}
62-
6353
/**
6454
* Gets the 'foo' service.
6555
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services26.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public function isCompiled()
5252
return true;
5353
}
5454

55-
/**
56-
* {@inheritdoc}
57-
*/
58-
public function isFrozen()
59-
{
60-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
61-
62-
return true;
63-
}
64-
6555
/**
6656
* Gets the 'test' service.
6757
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services31.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ public function isCompiled()
5151
return true;
5252
}
5353

54-
/**
55-
* {@inheritdoc}
56-
*/
57-
public function isFrozen()
58-
{
59-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
60-
61-
return true;
62-
}
63-
6454
/**
6555
* Gets the 'bar' service.
6656
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services32.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ public function isCompiled()
5151
return true;
5252
}
5353

54-
/**
55-
* {@inheritdoc}
56-
*/
57-
public function isFrozen()
58-
{
59-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
60-
61-
return true;
62-
}
63-
6454
/**
6555
* Gets the 'bar' service.
6656
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services33.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,6 @@ public function isCompiled()
5353
return true;
5454
}
5555

56-
/**
57-
* {@inheritdoc}
58-
*/
59-
public function isFrozen()
60-
{
61-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
62-
63-
return true;
64-
}
65-
6656
/**
6757
* Gets the 'Symfony\Component\DependencyInjection\Tests\Fixtures\Container33\Foo' service.
6858
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services8.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,6 @@ public function isCompiled()
4949
return true;
5050
}
5151

52-
/**
53-
* {@inheritdoc}
54-
*/
55-
public function isFrozen()
56-
{
57-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
58-
59-
return true;
60-
}
61-
6252
/**
6353
* {@inheritdoc}
6454
*/

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,6 @@ public function isCompiled()
7373
return true;
7474
}
7575

76-
/**
77-
* {@inheritdoc}
78-
*/
79-
public function isFrozen()
80-
{
81-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
82-
83-
return true;
84-
}
85-
8676
/**
8777
* Gets the 'bar' service.
8878
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_dump_proxy_with_void_return_type.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ public function isCompiled()
5151
return true;
5252
}
5353

54-
/**
55-
* {@inheritdoc}
56-
*/
57-
public function isFrozen()
58-
{
59-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
60-
61-
return true;
62-
}
63-
6454
/**
6555
* Gets the 'bar' service.
6656
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_locator.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,6 @@ public function isCompiled()
6161
return true;
6262
}
6363

64-
/**
65-
* {@inheritdoc}
66-
*/
67-
public function isFrozen()
68-
{
69-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
70-
71-
return true;
72-
}
73-
7464
/**
7565
* Gets the 'bar_service' service.
7666
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_private_frozen.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,6 @@ public function isCompiled()
5555
return true;
5656
}
5757

58-
/**
59-
* {@inheritdoc}
60-
*/
61-
public function isFrozen()
62-
{
63-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
64-
65-
return true;
66-
}
67-
6858
/**
6959
* Gets the 'bar_service' service.
7060
*

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_subscriber.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ public function isCompiled()
5959
return true;
6060
}
6161

62-
/**
63-
* {@inheritdoc}
64-
*/
65-
public function isFrozen()
66-
{
67-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
68-
69-
return true;
70-
}
71-
7262
/**
7363
* Gets the 'Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber' service.
7464
*

0 commit comments

Comments
 (0)
0