-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Add configureContainer(), configureRoutes() and getConfigDir() to MicroKernelTrait #42991
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
The head ref may contain hidden characters: "fwb-\u00B5k"
Conversation
9b735f1
to
89298b9
Compare
@@ -152,7 +185,7 @@ public function registerContainerConfiguration(LoaderInterface $loader) | |||
}; | |||
|
|||
try { | |||
$this->configureContainer(new ContainerConfigurator($container, $kernelLoader, $instanceof, $file, $file, $this->getEnvironment()), $loader); | |||
$configureContainer->getClosure($this)(new ContainerConfigurator($container, $kernelLoader, $instanceof, $file, $file, $this->getEnvironment()), $loader, $container); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3rd argument to help with #35554
I like it 👍🏼 |
…ConfigDir() to MicroKernelTrait
89298b9
to
8914529
Compare
Please give me another day or two to test and review this carefully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Thank you
@nicolas-grekas why |
Method from traits can be overridden in the class that uses the trait even if they are private. |
🤦 thank you @nicolas-grekas |
This PR aims at moving code from the Kernel's recipe to
MicroKernelTrait
.It has also the benefit of not requiring ppl that don't use the router to still implement
configureRoutes()
in their app.