-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[FrameworkBundle] Allow XML configuration in config/packages by default #45167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
07defc3
4919e2f
cc5fcb5
e3b3aed
de5c685
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,8 +50,8 @@ private function configureContainer(ContainerConfigurator $container, LoaderInte | |
{ | ||
$configDir = $this->getConfigDir(); | ||
|
||
$container->import($configDir.'/{packages}/*.{php,yaml}'); | ||
$container->import($configDir.'/{packages}/'.$this->environment.'/*.{php,yaml}'); | ||
$container->import($configDir.'/{packages}/*.{yaml,xml,php}'); | ||
$container->import($configDir.'/{packages}/'.$this->environment.'/*.{yaml,xml,php}'); | ||
|
||
if (is_file($configDir.'/services.yaml')) { | ||
$container->import($configDir.'/services.yaml'); | ||
|
@@ -74,8 +74,8 @@ private function configureRoutes(RoutingConfigurator $routes): void | |
{ | ||
$configDir = $this->getConfigDir(); | ||
|
||
$routes->import($configDir.'/{routes}/'.$this->environment.'/*.{php,yaml}'); | ||
$routes->import($configDir.'/{routes}/*.{php,yaml}'); | ||
$routes->import($configDir.'/{routes}/'.$this->environment.'/*.{php,xml,yaml}'); | ||
$routes->import($configDir.'/{routes}/*.{php,xml,yaml}'); | ||
|
||
if (is_file($configDir.'/routes.yaml')) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I'm not mistaking shouldn't this case be covered as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
sorry, i missed the else case. @nicolas-grekas WDYT? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ideally i'd like this to be simple as for services we could phase out Then everything is uniform IMHO. |
||
$routes->import($configDir.'/routes.yaml'); | ||
|
Uh oh!
There was an error while loading. Please reload this page.