Skip to content

Commit 6d34700

Browse files
Merge branch '6.2' into 6.3
* 6.2: Fix test
2 parents cc4cb25 + 18e6e34 commit 6d34700

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/serializer_mapping_without_annotations.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
$container->loadFromExtension('framework', [
4+
'http_method_override' => false,
45
'serializer' => [
56
'enable_annotations' => false,
67
'mapping' => [

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/serializer_mapping_without_annotations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xmlns:framework="http://symfony.com/schema/dic/symfony">
66

7-
<framework:config>
7+
<framework:config http-method-override="false">
88
<framework:serializer enable-annotations="false">
99
<framework:mapping>
1010
<framework:path>%kernel.project_dir%/Fixtures/TestBundle/Resources/config/serializer_mapping/files</framework:path>

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/serializer_mapping_without_annotations.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
framework:
2+
http_method_override: false
23
serializer:
34
enable_annotations: false
45
mapping:

src/Symfony/Component/DependencyInjection/Loader/FileLoader.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,7 @@ private function findClasses(string $namespace, string $pattern, array $excludeP
297297
if (null !== $prefixLen) {
298298
foreach ($excludePaths as $path => $_) {
299299
$class = $namespace.ltrim(str_replace('/', '\\', substr($path, $prefixLen, str_ends_with($path, '.php') ? -4 : null)), '\\');
300-
<<<<<<< HEAD
301300
$this->addContainerExcludedTag($class, $source);
302-
=======
303-
if (!$this->container->has($class)) {
304-
$this->container->register($class, $class)
305-
->setAbstract(true)
306-
->addTag('container.excluded', $attributes);
307-
}
308-
>>>>>>> 6.2
309301
}
310302
}
311303

@@ -324,7 +316,7 @@ private function addContainerExcludedTag(string $class, ?string $source): void
324316
$attributes[$source] = ['source' => sprintf('in "%s/%s"', basename(\dirname($source)), basename($source))];
325317
}
326318

327-
$this->container->register($class)
319+
$this->container->register($class, $class)
328320
->setAbstract(true)
329321
->addTag('container.excluded', null !== $source ? $attributes[$source] : []);
330322
}

0 commit comments

Comments
 (0)