minor #17652 [DependencyInjection] Remove unused parameter (dunglas)
This PR was squashed before being merged into the 3.0 branch (closes #17652).
Discussion
----------
[DependencyInjection] Remove unused parameter
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Commits
-------
1a58639
[DependencyInjection] Remove unused parameter
This commit is contained in:
commit
816ecb77ab
|
@ -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