[DependencyInjection] Remove unused parameter
This commit is contained in:
parent
36bf3946f2
commit
1a58639bf8
@ -72,7 +72,7 @@ class InlineServiceDefinitionsPass implements RepeatablePassInterface
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isInlineableDefinition($container, $id, $definition = $container->getDefinition($id))) {
|
if ($this->isInlineableDefinition($id, $definition = $container->getDefinition($id))) {
|
||||||
$this->compiler->addLogMessage($this->formatter->formatInlineService($this, $id, $this->currentId));
|
$this->compiler->addLogMessage($this->formatter->formatInlineService($this, $id, $this->currentId));
|
||||||
|
|
||||||
if ($definition->isShared()) {
|
if ($definition->isShared()) {
|
||||||
@ -100,13 +100,12 @@ class InlineServiceDefinitionsPass implements RepeatablePassInterface
|
|||||||
/**
|
/**
|
||||||
* Checks if the definition is inlineable.
|
* Checks if the definition is inlineable.
|
||||||
*
|
*
|
||||||
* @param ContainerBuilder $container
|
|
||||||
* @param string $id
|
* @param string $id
|
||||||
* @param Definition $definition
|
* @param Definition $definition
|
||||||
*
|
*
|
||||||
* @return bool If the definition is inlineable
|
* @return bool If the definition is inlineable
|
||||||
*/
|
*/
|
||||||
private function isInlineableDefinition(ContainerBuilder $container, $id, Definition $definition)
|
private function isInlineableDefinition($id, Definition $definition)
|
||||||
{
|
{
|
||||||
if (!$definition->isShared()) {
|
if (!$definition->isShared()) {
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user