Skip to content

Commit d559a6f

Browse files
Merge branch '3.4' into 4.0
* 3.4: fix deps
2 parents 5832e08 + 922bd54 commit d559a6f

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

Tests/Fixtures/php/services_dedup_lazy_proxy.php

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ class ProjectServiceContainer extends Container
1919
private $parameters;
2020
private $targetDirs = array();
2121

22+
/**
23+
* @internal but protected for BC on cache:clear
24+
*/
25+
protected $privates = array();
26+
2227
public function __construct()
2328
{
24-
$this->services = array();
29+
$this->services = $this->privates = array();
2530
$this->methodMap = array(
2631
'bar' => 'getBarService',
2732
'foo' => 'getFooService',
@@ -30,12 +35,10 @@ public function __construct()
3035
$this->aliases = array();
3136
}
3237

33-
public function getRemovedIds()
38+
public function reset()
3439
{
35-
return array(
36-
'Psr\\Container\\ContainerInterface' => true,
37-
'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
38-
);
40+
$this->privates = array();
41+
parent::reset();
3942
}
4043

4144
public function compile()
@@ -48,11 +51,12 @@ public function isCompiled()
4851
return true;
4952
}
5053

51-
public function isFrozen()
54+
public function getRemovedIds()
5255
{
53-
@trigger_error(sprintf('The %s() method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
54-
55-
return true;
56+
return array(
57+
'Psr\\Container\\ContainerInterface' => true,
58+
'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
59+
);
5660
}
5761

5862
protected function createProxy($class, \Closure $factory)

0 commit comments

Comments
 (0)