Thanks to visit codestin.com
Credit goes to github.com

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 parameter 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
*

0 commit comments

Comments
 (0)