Skip to content

Commit 542e772

Browse files
committed
Merge branch '2.2'
* 2.2: (22 commits) fixed doc references (closes #7515) fixed doc references (closes #7515) On OS X, sys_get_tmp_dir() returns /var/private/..., which really is below /private/var. Doctrine cannot handle bare random non-utf8 strings small changes [SecurityBundle] Fixed configuration exemple idAsIndex should be true with a smallint or bigint id field. [PropertyAccess] Remove trailing periods from doc blocks Fix param docs for PropertyAccessor read method Fixed long multibyte parameter logging in DbalLogger:startQuery Keep the file extension in the temporary copy and test that it exists (closes #7482) bumped Symfony version to 2.1.10-DEV [Validator][translation][japanese]replaced period to japanese one [Validator][translation][japanese]fixed japanese translation to more practical one [Validator][translation][japanese]fixed message ordering to be consistent with other languages [Validator][translation][japanese]added new validation messages in japanese translation updated VERSION for 2.1.9 update CONTRIBUTORS for 2.1.9 updated CHANGELOG for 2.1.9 [Security] fixed wrong interface Remove already defined arguments Add missing use [FrameworkBundle] Reuse definition variable in FormPass ... Conflicts: src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
2 parents 98f30b0 + e342172 commit 542e772

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

DependencyInjection/Compiler/FormPass.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public function process(ContainerBuilder $container)
2828
return;
2929
}
3030

31+
$definition = $container->getDefinition('form.extension');
32+
3133
// Builds an array with service IDs as keys and tag aliases as values
3234
$types = array();
3335

@@ -40,7 +42,7 @@ public function process(ContainerBuilder $container)
4042
$types[$alias] = $serviceId;
4143
}
4244

43-
$container->getDefinition('form.extension')->replaceArgument(1, $types);
45+
$definition->replaceArgument(1, $types);
4446

4547
$typeExtensions = array();
4648

@@ -52,11 +54,11 @@ public function process(ContainerBuilder $container)
5254
$typeExtensions[$alias][] = $serviceId;
5355
}
5456

55-
$container->getDefinition('form.extension')->replaceArgument(2, $typeExtensions);
57+
$definition->replaceArgument(2, $typeExtensions);
5658

5759
// Find all services annotated with "form.type_guesser"
5860
$guessers = array_keys($container->findTaggedServiceIds('form.type_guesser'));
5961

60-
$container->getDefinition('form.extension')->replaceArgument(3, $guessers);
62+
$definition->replaceArgument(3, $guessers);
6163
}
6264
}

0 commit comments

Comments
 (0)