minor #23744 [Form] Removed useless argument $definition (yceruto)
This PR was merged into the 3.3 branch.
Discussion
----------
[Form] Removed useless argument $definition
| Q | A
| ------------- | ---
| Branch? | 3.3
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
After https://github.com/symfony/symfony/pull/22175/files this argument is not used anymore.
Commits
-------
81396c7fac
Removed useless argument $definition
This commit is contained in:
commit
584b7b44df
@ -16,7 +16,6 @@ use Symfony\Component\DependencyInjection\Compiler\PriorityTaggedServiceTrait;
|
|||||||
use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
|
use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||||
use Symfony\Component\DependencyInjection\Definition;
|
|
||||||
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
|
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
|
|
||||||
@ -53,12 +52,12 @@ class FormPass implements CompilerPassInterface
|
|||||||
if (new IteratorArgument(array()) != $definition->getArgument(2)) {
|
if (new IteratorArgument(array()) != $definition->getArgument(2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$definition->replaceArgument(0, $this->processFormTypes($container, $definition));
|
$definition->replaceArgument(0, $this->processFormTypes($container));
|
||||||
$definition->replaceArgument(1, $this->processFormTypeExtensions($container));
|
$definition->replaceArgument(1, $this->processFormTypeExtensions($container));
|
||||||
$definition->replaceArgument(2, $this->processFormTypeGuessers($container));
|
$definition->replaceArgument(2, $this->processFormTypeGuessers($container));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function processFormTypes(ContainerBuilder $container, Definition $definition)
|
private function processFormTypes(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
// Get service locator argument
|
// Get service locator argument
|
||||||
$servicesMap = array();
|
$servicesMap = array();
|
||||||
|
Reference in New Issue
Block a user