[FrameworkBundle] Add parameter types from DependencyInjection.
This commit is contained in:
parent
b64fdb7c0a
commit
b2a3aa64bf
@ -57,7 +57,7 @@ class TestContainer extends Container
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function getParameter($name)
|
public function getParameter(string $name)
|
||||||
{
|
{
|
||||||
return $this->getPublicContainer()->getParameter($name);
|
return $this->getPublicContainer()->getParameter($name);
|
||||||
}
|
}
|
||||||
@ -65,7 +65,7 @@ class TestContainer extends Container
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function hasParameter($name)
|
public function hasParameter(string $name)
|
||||||
{
|
{
|
||||||
return $this->getPublicContainer()->hasParameter($name);
|
return $this->getPublicContainer()->hasParameter($name);
|
||||||
}
|
}
|
||||||
@ -73,7 +73,7 @@ class TestContainer extends Container
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function setParameter($name, $value)
|
public function setParameter(string $name, $value)
|
||||||
{
|
{
|
||||||
$this->getPublicContainer()->setParameter($name, $value);
|
$this->getPublicContainer()->setParameter($name, $value);
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ class TestContainer extends Container
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function set($id, $service)
|
public function set(string $id, $service)
|
||||||
{
|
{
|
||||||
$this->getPublicContainer()->set($id, $service);
|
$this->getPublicContainer()->set($id, $service);
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ class TestContainer extends Container
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function get($id, $invalidBehavior = /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1)
|
public function get($id, int $invalidBehavior = /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1)
|
||||||
{
|
{
|
||||||
return $this->getPrivateContainer()->has($id) ? $this->getPrivateContainer()->get($id) : $this->getPublicContainer()->get($id, $invalidBehavior);
|
return $this->getPrivateContainer()->has($id) ? $this->getPrivateContainer()->get($id) : $this->getPublicContainer()->get($id, $invalidBehavior);
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ class TestContainer extends Container
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function initialized($id)
|
public function initialized(string $id)
|
||||||
{
|
{
|
||||||
return $this->getPublicContainer()->initialized($id);
|
return $this->getPublicContainer()->initialized($id);
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"ext-xml": "*",
|
"ext-xml": "*",
|
||||||
"symfony/cache": "^4.4|^5.0",
|
"symfony/cache": "^4.4|^5.0",
|
||||||
"symfony/config": "^5.0",
|
"symfony/config": "^5.0",
|
||||||
"symfony/dependency-injection": "^4.4|^5.0",
|
"symfony/dependency-injection": "^5.0",
|
||||||
"symfony/error-renderer": "^4.4|^5.0",
|
"symfony/error-renderer": "^4.4|^5.0",
|
||||||
"symfony/http-foundation": "^4.4|^5.0",
|
"symfony/http-foundation": "^4.4|^5.0",
|
||||||
"symfony/http-kernel": "^4.4|^5.0",
|
"symfony/http-kernel": "^4.4|^5.0",
|
||||||
|
Reference in New Issue
Block a user