Skip to content
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 by kernel.project_dir #6809

Conversation

yguedidi
Copy link
Contributor

@yguedidi yguedidi commented Aug 7, 2023

The Kernel::getRootDir() and the kernel.root_dir parameter have been removed

from https://github.com/symfony/symfony/blob/4.4/UPGRADE-5.0.md#httpkernel

@@ -2,16 +2,16 @@ const path = require('path');
const webpack = require('webpack');
const StyleLintPlugin = require('stylelint-webpack-plugin');

const rootDir = path.resolve(__dirname, '../../../');
const projectDir = path.resolve(__dirname, '../../../');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this rename is not needed as it's in the JS, but I did it for consistency with back-end naming

@@ -6,7 +6,7 @@ parameters:
database_name: ${DATABASE_NAME:-symfony}
database_user: ${DATABASE_USER:-root}
database_password: ${DATABASE_PASSWORD:-~}
database_path: '${DATABASE_PATH:-"%kernel.root_dir%/data/db/wallabag.sqlite"}'
database_path: '${DATABASE_PATH:-"%kernel.project_dir%/data/db/wallabag.sqlite"}'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the previous default value was broken as root_dir is the directory where the kernel is, so app/, while data/ is at the root of the project, not inside app/

@yguedidi yguedidi force-pushed the replace-kernel.root_dir-by-kernel.project_dir branch from 3c0a0ca to 50e9930 Compare August 7, 2023 21:52
@yguedidi yguedidi force-pushed the replace-kernel.root_dir-by-kernel.project_dir branch from 50e9930 to cc33fcb Compare August 9, 2023 21:46
@yguedidi
Copy link
Contributor Author

Here the equivalent on the docker repo wallabag/docker#361

@Kdecherf Kdecherf added this to the 2.6.3 milestone Aug 13, 2023
@Kdecherf Kdecherf merged commit 48226ad into wallabag:master Aug 13, 2023
19 checks passed
@yguedidi yguedidi deleted the replace-kernel.root_dir-by-kernel.project_dir branch August 14, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants