Skip to content

Commit 65428e1

Browse files
committed
Fix serializer/translations/validator resources loading for bundles overriding getPath()
1 parent 62ee47e commit 65428e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Kernel.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,15 @@ protected function initializeContainer()
531531
protected function getKernelParameters()
532532
{
533533
$bundles = array();
534+
$bundlesMetadata = array();
535+
534536
foreach ($this->bundles as $name => $bundle) {
535537
$bundles[$name] = get_class($bundle);
538+
$bundlesMetadata[$name] = array(
539+
'parent' => $bundle->getParent(),
540+
'path' => $bundle->getPath(),
541+
'namespace' => $bundle->getNamespace(),
542+
);
536543
}
537544

538545
return array_merge(
@@ -544,6 +551,7 @@ protected function getKernelParameters()
544551
'kernel.cache_dir' => realpath($this->getCacheDir()) ?: $this->getCacheDir(),
545552
'kernel.logs_dir' => realpath($this->getLogDir()) ?: $this->getLogDir(),
546553
'kernel.bundles' => $bundles,
554+
'kernel.bundles_metadata' => $bundlesMetadata,
547555
'kernel.charset' => $this->getCharset(),
548556
'kernel.container_class' => $this->getContainerClass(),
549557
),

0 commit comments

Comments
 (0)