Skip to content

Commit 13c5502

Browse files
Merge branch '6.2' into 6.3
* 6.2: [Serializer] Fix serializedpath for non scalar types [Serializer] Preserve array keys while denormalize variadic parameters [FrameworkBundle] enable metadata cache when annotation is disabled [DependencyInjection] Fix setting the class of auto-discovery services [FrameworkBundle] Fix auto-discovering validator constraints TranslatorBag::diff now iterates over catalogue domains instead of operation domains [HttpClient] Fix not calling the on progress callback when canceling a MockResponse [TwigBridge] Fix raw content rendering in HTML notification emails
2 parents 4a66588 + b6195fe commit 13c5502

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Loader/FileLoader.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ public function registerClasses(Definition $prototype, string $namespace, string
153153

154154
continue;
155155
}
156+
$definition->setClass($class);
157+
156158
$interfaces = [];
157159
foreach (class_implements($class, false) as $interface) {
158160
$this->singlyImplemented[$interface] = ($this->singlyImplemented[$interface] ?? $class) !== $class ? false : $class;
@@ -295,7 +297,15 @@ private function findClasses(string $namespace, string $pattern, array $excludeP
295297
if (null !== $prefixLen) {
296298
foreach ($excludePaths as $path => $_) {
297299
$class = $namespace.ltrim(str_replace('/', '\\', substr($path, $prefixLen, str_ends_with($path, '.php') ? -4 : null)), '\\');
300+
<<<<<<< HEAD
298301
$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
299309
}
300310
}
301311

0 commit comments

Comments
 (0)