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 34f4ef5

Browse filesBrowse files
committed
[FrameworkBundle][Console] Load command from DIC after command from bundles.
It's better to load a command from DIC after other one. Because it allow easy override of default (symfony/assetic/doctrine) command. The end user could do: # config.yml services: assetic.command.dump: class: SensioLabs\Shim\Assetic\DumpCommand tags: - { name: console.command }
1 parent f828aee commit 34f4ef5
Copy full SHA for 34f4ef5

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Collapse file

‎src/Symfony/Bundle/FrameworkBundle/Console/Application.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Console/Application.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ protected function registerCommands()
100100
{
101101
$container = $this->kernel->getContainer();
102102

103-
if ($container->hasParameter('console.command.ids')) {
104-
foreach ($container->getParameter('console.command.ids') as $id) {
105-
$this->add($container->get($id));
106-
}
107-
}
108-
109103
foreach ($this->kernel->getBundles() as $bundle) {
110104
if ($bundle instanceof Bundle) {
111105
$bundle->registerCommands($this);
112106
}
113107
}
108+
109+
if ($container->hasParameter('console.command.ids')) {
110+
foreach ($container->getParameter('console.command.ids') as $id) {
111+
$this->add($container->get($id));
112+
}
113+
}
114114
}
115115
}

0 commit comments

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