Merge branch '4.0'

* 4.0:
  fix merge
This commit is contained in:
Nicolas Grekas 2018-02-04 15:28:49 +01:00
commit d2fb4d143e
4 changed files with 56 additions and 40 deletions

View File

@ -21,21 +21,24 @@ class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tes
private $parameters; private $parameters;
private $targetDirs = array(); private $targetDirs = array();
/**
* @internal but protected for BC on cache:clear
*/
protected $privates = array();
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
$this->services = array(); $this->services = $this->privates = array();
$this->aliases = array(); $this->aliases = array();
} }
public function getRemovedIds() public function reset()
{ {
return array( $this->privates = array();
'Psr\\Container\\ContainerInterface' => true, parent::reset();
'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
);
} }
public function compile() public function compile()
@ -48,10 +51,11 @@ class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tes
return true; return true;
} }
public function isFrozen() public function getRemovedIds()
{ {
@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); return array(
'Psr\\Container\\ContainerInterface' => true,
return true; 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
);
} }
} }

View File

@ -21,19 +21,22 @@ class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tes
private $parameters; private $parameters;
private $targetDirs = array(); private $targetDirs = array();
/**
* @internal but protected for BC on cache:clear
*/
protected $privates = array();
public function __construct() public function __construct()
{ {
$this->services = array(); $this->services = $this->privates = array();
$this->aliases = array(); $this->aliases = array();
} }
public function getRemovedIds() public function reset()
{ {
return array( $this->privates = array();
'Psr\\Container\\ContainerInterface' => true, parent::reset();
'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
);
} }
public function compile() public function compile()
@ -46,10 +49,11 @@ class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tes
return true; return true;
} }
public function isFrozen() public function getRemovedIds()
{ {
@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); return array(
'Psr\\Container\\ContainerInterface' => true,
return true; 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
);
} }
} }

View File

@ -21,21 +21,24 @@ class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tes
private $parameters; private $parameters;
private $targetDirs = array(); private $targetDirs = array();
/**
* @internal but protected for BC on cache:clear
*/
protected $privates = array();
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
$this->services = array(); $this->services = $this->privates = array();
$this->aliases = array(); $this->aliases = array();
} }
public function getRemovedIds() public function reset()
{ {
return array( $this->privates = array();
'Psr\\Container\\ContainerInterface' => true, parent::reset();
'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
);
} }
public function compile() public function compile()
@ -48,10 +51,11 @@ class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tes
return true; return true;
} }
public function isFrozen() public function getRemovedIds()
{ {
@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); return array(
'Psr\\Container\\ContainerInterface' => true,
return true; 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
);
} }
} }

View File

@ -21,19 +21,22 @@ class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tes
private $parameters; private $parameters;
private $targetDirs = array(); private $targetDirs = array();
/**
* @internal but protected for BC on cache:clear
*/
protected $privates = array();
public function __construct() public function __construct()
{ {
$this->services = array(); $this->services = $this->privates = array();
$this->aliases = array(); $this->aliases = array();
} }
public function getRemovedIds() public function reset()
{ {
return array( $this->privates = array();
'Psr\\Container\\ContainerInterface' => true, parent::reset();
'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
);
} }
public function compile() public function compile()
@ -46,10 +49,11 @@ class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tes
return true; return true;
} }
public function isFrozen() public function getRemovedIds()
{ {
@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); return array(
'Psr\\Container\\ContainerInterface' => true,
return true; 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
);
} }
} }