-
Notifications
You must be signed in to change notification settings - Fork 292
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
Replace kernel.root_dir with kernel.project_dir #522
Conversation
@@ -78,7 +86,7 @@ protected function execute(InputInterface $input, OutputInterface $output) | |||
$files = $this->retrieveFiles($dirs); | |||
|
|||
foreach ($files as $file) { | |||
$path = str_replace($basePath, '%kernel.root_dir%', $file); | |||
$path = str_replace($basePath, '%kernel.project_dir%', $file); |
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.
I guess this wasn't working before because it was replacing $basePath
which contained '%kernel.root_dir%/..'
with '%kernel.root_dir%'
0f594cd
to
345d45f
Compare
can you please rebase this? |
345d45f
to
88efd77
Compare
thanks! |
@goetas can you please tag a new release with this? |
Will prepare it in the next days. @franmomu is there something that you have still planned to do? What do you think about? |
I don't have anything more planned to do, I think it's ready to tag a new release. |
Ok, then I have it on my todo list. (I hope so),... The last feature release was years ago |
Description
kernel.root_dir
was deprecated in Symfony 4.2 and is removed in 5.0. This PR tries to replacekernel.root_dir
bykernel.project_dir
wherever is possible and do not usekernel.root_dir
if is not defined. I also changed the docs to reference thetranslations
folder at the root directory of the project (which is the recommended place).After this one (and #523), I think the only left to do to be able to use SF5 are commands, I'll take a look then.