[DI] remove inheritdoc from dumped container

This commit is contained in:
Tobias Schultze 2017-10-04 18:30:17 +02:00
parent 2abe788f6e
commit d779845c3b
23 changed files with 0 additions and 336 deletions

View File

@ -899,25 +899,16 @@ EOF;
if ($this->container->isCompiled()) { if ($this->container->isCompiled()) {
$code .= <<<EOF $code .= <<<EOF
/*{$this->docStar}
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/*{$this->docStar}
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/*{$this->docStar}
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -931,9 +922,6 @@ EOF;
if ($this->asFiles) { if ($this->asFiles) {
$code .= <<<EOF $code .= <<<EOF
/*{$this->docStar}
* {@inheritdoc}
*/
protected function load(\$file, \$lazyLoad = true) protected function load(\$file, \$lazyLoad = true)
{ {
return require \$file; return require \$file;
@ -1125,9 +1113,6 @@ EOF;
if ($this->container->isCompiled()) { if ($this->container->isCompiled()) {
$code .= <<<'EOF' $code .= <<<'EOF'
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -1144,9 +1129,6 @@ EOF;
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -1154,17 +1136,11 @@ EOF;
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {
@ -1179,9 +1155,6 @@ EOF;
} }
EOF; EOF;
if ('' === $this->docStar) {
$code = str_replace('/**', '/*', $code);
}
if ($dynamicPhp) { if ($dynamicPhp) {
$loadedDynamicParameters = $this->exportParameters(array_combine(array_keys($dynamicPhp), array_fill(0, count($dynamicPhp), false)), '', 8); $loadedDynamicParameters = $this->exportParameters(array_combine(array_keys($dynamicPhp), array_fill(0, count($dynamicPhp), false)), '', 8);

View File

@ -28,25 +28,16 @@ class Container extends AbstractContainer
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -26,25 +26,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -31,25 +31,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -67,9 +58,6 @@ class ProjectServiceContainer extends Container
return $this->services['test'] = new \stdClass(array('only dot' => '.', 'concatenation as value' => '.\'\'.', 'concatenation from the start value' => '\'\'.', '.' => 'dot as a key', '.\'\'.' => 'concatenation as a key', '\'\'.' => 'concatenation from the start key', 'optimize concatenation' => 'string1-string2', 'optimize concatenation with empty string' => 'string1string2', 'optimize concatenation from the start' => 'start', 'optimize concatenation at the end' => 'end')); return $this->services['test'] = new \stdClass(array('only dot' => '.', 'concatenation as value' => '.\'\'.', 'concatenation from the start value' => '\'\'.', '.' => 'dot as a key', '.\'\'.' => 'concatenation as a key', '\'\'.' => 'concatenation from the start key', 'optimize concatenation' => 'string1-string2', 'optimize concatenation with empty string' => 'string1string2', 'optimize concatenation from the start' => 'start', 'optimize concatenation at the end' => 'end'));
} }
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -86,9 +74,6 @@ class ProjectServiceContainer extends Container
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -96,17 +81,11 @@ class ProjectServiceContainer extends Container
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {

View File

@ -35,25 +35,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -71,9 +62,6 @@ class ProjectServiceContainer extends Container
return $this->services['test'] = new \stdClass(('wiz'.$this->targetDirs[1]), array(('wiz'.$this->targetDirs[1]) => ($this->targetDirs[2].'/'))); return $this->services['test'] = new \stdClass(('wiz'.$this->targetDirs[1]), array(('wiz'.$this->targetDirs[1]) => ($this->targetDirs[2].'/')));
} }
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -90,9 +78,6 @@ class ProjectServiceContainer extends Container
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -100,17 +85,11 @@ class ProjectServiceContainer extends Container
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {

View File

@ -29,25 +29,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -30,25 +30,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -29,25 +29,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -35,25 +35,16 @@ class Symfony_DI_PhpDumper_Test_EnvParameters extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -73,9 +64,6 @@ class Symfony_DI_PhpDumper_Test_EnvParameters extends Container
return $this->services['test'] = new $class($this->getEnv('Bar'), 'foo'.$this->getEnv('string:FOO').'baz', $this->getEnv('int:Baz')); return $this->services['test'] = new $class($this->getEnv('Bar'), 'foo'.$this->getEnv('string:FOO').'baz', $this->getEnv('int:Baz'));
} }
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -92,9 +80,6 @@ class Symfony_DI_PhpDumper_Test_EnvParameters extends Container
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -102,17 +87,11 @@ class Symfony_DI_PhpDumper_Test_EnvParameters extends Container
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {

View File

@ -30,25 +30,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -34,25 +34,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -28,25 +28,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -54,9 +45,6 @@ class ProjectServiceContainer extends Container
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -73,9 +61,6 @@ class ProjectServiceContainer extends Container
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -83,17 +68,11 @@ class ProjectServiceContainer extends Container
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {

View File

@ -322,25 +322,16 @@ class Container%s extends Container
); );
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -348,9 +339,6 @@ class Container%s extends Container
return true; return true;
} }
/**
* {@inheritdoc}
*/
protected function load($file, $lazyLoad = true) protected function load($file, $lazyLoad = true)
{ {
return require $file; return require $file;
@ -366,9 +354,6 @@ class Container%s extends Container
return new \Bar\FooClass(${($_ = isset($this->services['deprecated_service']) ? $this->services['deprecated_service'] : $this->load(__DIR__.'/getDeprecatedServiceService.php')) && false ?: '_'}); return new \Bar\FooClass(${($_ = isset($this->services['deprecated_service']) ? $this->services['deprecated_service'] : $this->load(__DIR__.'/getDeprecatedServiceService.php')) && false ?: '_'});
} }
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -385,9 +370,6 @@ class Container%s extends Container
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -395,17 +377,11 @@ class Container%s extends Container
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {

View File

@ -58,25 +58,16 @@ class ProjectServiceContainer extends Container
); );
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -374,9 +365,6 @@ class ProjectServiceContainer extends Container
return $this->services['tagged_iterator_foo'] = new \Bar(); return $this->services['tagged_iterator_foo'] = new \Bar();
} }
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -393,9 +381,6 @@ class ProjectServiceContainer extends Container
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -403,17 +388,11 @@ class ProjectServiceContainer extends Container
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {

View File

@ -35,25 +35,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -75,9 +66,6 @@ class ProjectServiceContainer extends Container
return $instance; return $instance;
} }
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -94,9 +82,6 @@ class ProjectServiceContainer extends Container
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -104,17 +89,11 @@ class ProjectServiceContainer extends Container
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {

View File

@ -28,25 +28,16 @@ class Symfony_DI_PhpDumper_Test_Base64Parameters extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -54,9 +45,6 @@ class Symfony_DI_PhpDumper_Test_Base64Parameters extends Container
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -73,9 +61,6 @@ class Symfony_DI_PhpDumper_Test_Base64Parameters extends Container
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -83,17 +68,11 @@ class Symfony_DI_PhpDumper_Test_Base64Parameters extends Container
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {

View File

@ -55,25 +55,16 @@ class Symfony_DI_PhpDumper_Test_Legacy_Privates extends Container
); );
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -40,25 +40,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -34,25 +34,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -33,25 +33,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -35,25 +35,16 @@ class Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);
@ -83,9 +74,6 @@ class Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container
})); }));
} }
/**
* {@inheritdoc}
*/
public function getParameter($name) public function getParameter($name)
{ {
if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
@ -102,9 +90,6 @@ class Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container
return $this->parameters[$name]; return $this->parameters[$name];
} }
/**
* {@inheritdoc}
*/
public function hasParameter($name) public function hasParameter($name)
{ {
$name = $this->normalizeParameterName($name); $name = $this->normalizeParameterName($name);
@ -112,17 +97,11 @@ class Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container
return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
} }
/**
* {@inheritdoc}
*/
public function setParameter($name, $value) public function setParameter($name, $value)
{ {
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
} }
/**
* {@inheritdoc}
*/
public function getParameterBag() public function getParameterBag()
{ {
if (null === $this->parameterBag) { if (null === $this->parameterBag) {

View File

@ -38,25 +38,16 @@ class ProjectServiceContainer extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);

View File

@ -35,25 +35,16 @@ class Symfony_DI_PhpDumper_Test_Uninitialized_Reference extends Container
$this->aliases = array(); $this->aliases = array();
} }
/**
* {@inheritdoc}
*/
public function compile() public function compile()
{ {
throw new LogicException('You cannot compile a dumped container that was already compiled.'); throw new LogicException('You cannot compile a dumped container that was already compiled.');
} }
/**
* {@inheritdoc}
*/
public function isCompiled() public function isCompiled()
{ {
return true; return true;
} }
/**
* {@inheritdoc}
*/
public function isFrozen() public function isFrozen()
{ {
@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); @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);