Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 10ee13a

Browse filesBrowse files
committed
[FrameworkBundle] fixed skeleton
1 parent 826e615 commit 10ee13a
Copy full SHA for 10ee13a

File tree

Expand file treeCollapse file tree

2 files changed

+10
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-4
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Resources/skeleton/application/xml/Kernel.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Resources/skeleton/application/xml/Kernel.php
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Symfony\Framework\Kernel;
66
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader as ContainerLoader;
77
use Symfony\Components\Routing\Loader\XmlFileLoader as RoutingLoader;
8+
use Symfony\Components\DependencyInjection\ContainerBuilder;
89

910
use Symfony\Framework\Bundle\KernelBundle;
1011
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
@@ -50,9 +51,11 @@ public function registerBundleDirs()
5051

5152
public function registerContainerConfiguration()
5253
{
53-
$loader = new ContainerLoader($this->getBundleDirs());
54+
$container = new ContainerBuilder();
55+
$loader = new ContainerLoader($container, $this->getBundleDirs());
56+
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.xml');
5457

55-
return $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.xml');
58+
return $container;
5659
}
5760

5861
public function registerRoutes()

‎src/Symfony/Bundle/FrameworkBundle/Resources/skeleton/application/yaml/Kernel.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Resources/skeleton/application/yaml/Kernel.php
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Symfony\Framework\Kernel;
66
use Symfony\Components\DependencyInjection\Loader\YamlFileLoader as ContainerLoader;
77
use Symfony\Components\Routing\Loader\YamlFileLoader as RoutingLoader;
8+
use Symfony\Components\DependencyInjection\ContainerBuilder;
89

910
use Symfony\Framework\Bundle\KernelBundle;
1011
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
@@ -50,9 +51,11 @@ public function registerBundleDirs()
5051

5152
public function registerContainerConfiguration()
5253
{
53-
$loader = new ContainerLoader($this->getBundleDirs());
54+
$container = new ContainerBuilder();
55+
$loader = new ContainerLoader($container, $this->getBundleDirs());
56+
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
5457

55-
return $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
58+
return $container;
5659
}
5760

5861
public function registerRoutes()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.