Merge branch '2.7' into 2.8

This commit is contained in:
Tobias Schultze 2015-10-03 18:42:07 +02:00
commit cdbabb0baa
3 changed files with 2 additions and 7 deletions

View File

@ -25,9 +25,7 @@ class DependencyInjectionExtension implements FormExtensionInterface
private $guesser;
private $guesserLoaded = false;
public function __construct(ContainerInterface $container,
array $typeServiceIds, array $typeExtensionServiceIds,
array $guesserServiceIds)
public function __construct(ContainerInterface $container, array $typeServiceIds, array $typeExtensionServiceIds, array $guesserServiceIds)
{
$this->container = $container;
$this->typeServiceIds = $typeServiceIds;

View File

@ -44,9 +44,6 @@ class BindRequestListener implements EventSubscriberInterface
@trigger_error('The '.__CLASS__.' class is deprecated since version 2.3 and will be removed in 3.0. Pass the Request instance to the \Symfony\Component\Form\Form::handleRequest() method instead.', E_USER_DEPRECATED);
// Uncomment this as soon as the deprecation note should be shown
// @trigger_error('Passing a Request instance to Form::submit() is deprecated since version 2.3 and will be disabled in 3.0. Call Form::process($request) instead.', E_USER_DEPRECATED);
$name = $form->getConfig()->getName();
$default = $form->getConfig()->getCompound() ? array() : null;

View File

@ -49,7 +49,7 @@ class AnnotationLoader implements LoaderInterface
$attributesMetadata = $classMetadata->getAttributesMetadata();
foreach ($reflectionClass->getProperties() as $property) {
if (!isset($attributeMetadata[$property->name])) {
if (!isset($attributesMetadata[$property->name])) {
$attributesMetadata[$property->name] = new AttributeMetadata($property->name);
$classMetadata->addAttributeMetadata($attributesMetadata[$property->name]);
}