-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Use/support public/
folder for Contao Managed Edition
#1088
Comments
As far as I know, you can use a different folder and configure the application accordingly? There should be a property in the |
Yep, there is.
However, the question is, if the default should be changed to |
Does this mean that the domain root would have to be set to |
I am up for renaming the @contao/developers /cc |
We can't. It would require to change the DirectoryIndex of your server configuration. I don't see any value. At all. |
Renaming the directory has the same benefit as deprecating the |
What? We're talking |
Both are non-required changes that do not have to be done, because the "old" way works just fine. Still we now support the But switching from |
|
That's true. Still we should think of an upgrade path so we can change this in a future version, don't you think? |
I don't think we can. The only way that would work would be to have the The only option for me here is a hard break. Either we do that in 4.9 LTS or 4.10. Also note that we cannot just rename a config value because unfortunately there's still quite a few places where
|
This cannot be changed in 4.9 because of lots of (potential) BC breaks. We can discuss this for 4.10 imho, maybe someone can come up with a clever way (like symlinking |
Is this change really strategically so great? A lot of blog posts, videos and forum posts would no longer fit. Especially for inexperienced users there will be a lot of confusion... |
+1 for a hard break in Contao 4.10 then. |
I'd rather be able to configure it. So for new projects it would be If we want to change the default, I'd still vote for a config option so that noone is forced to change their server and deployment settings. |
You can configure it already. Fixing the mentioned hardcoded ones should be an easy-pick. |
I have removed the hardcoded paths in #1116. |
Description ----------- See #1088 (comment) Commits ------- 14e0f3c Replace "web/" with "contao.web_dir"
Description ----------- See contao/contao#1088 (comment) Commits ------- 14e0f3c4 Replace "web/" with "contao.web_dir"
Description ----------- See contao/contao#1088 (comment) Commits ------- 14e0f3c4 Replace "web/" with "contao.web_dir"
Perhaps you could implement a migration tool in Contao-Manager. |
As discussed in Mumble on March, 12th, the Contao Manager knows how the user has named its parent directory and could store this in the container. Then it would make no difference how the users name their public directory, as it would be set correctly by the Manager (similar to how it is set to The default in Contao 4.10 should be |
Description ----------- | Q | A | -----------------| --- | Fixed issues | Implements #1088 | Docs PR or issue | TODO This PR renames the `web` folder to `public` as discussed here: #1088 (comment) @contao/developers How do we want to implement backwards compatibility? I see two options: 1. Add a check in the `Configuration` class: If `contao.web_dir` is `public` and there is no `public` folder but a `web` folder, change the value to `web` automatically. 2. Make the `GenerateSymlinkCommand` generate a symlink from `public` to `web` if a `web` folder exists. I am in favor of solution no. 1, because I find having two different public folders confusing. WDYT? Commits ------- c398fba Rename the "web" folder to "public" a56bfaf Use /public instead of /web everywhere 40c6b92 Dynamically set the default value c8bd306 Add the BC layer to the commands, too 39261c2 Fix the CI chain
Description ----------- | Q | A | -----------------| --- | Fixed issues | Implements #1088 | Docs PR or issue | TODO This PR renames the `web` folder to `public` as discussed here: contao/contao#1088 (comment) @contao/developers How do we want to implement backwards compatibility? I see two options: 1. Add a check in the `Configuration` class: If `contao.web_dir` is `public` and there is no `public` folder but a `web` folder, change the value to `web` automatically. 2. Make the `GenerateSymlinkCommand` generate a symlink from `public` to `web` if a `web` folder exists. I am in favor of solution no. 1, because I find having two different public folders confusing. WDYT? Commits ------- c398fbaa Rename the "web" folder to "public" a56bfaf5 Use /public instead of /web everywhere 40c6b92f Dynamically set the default value c8bd3060 Add the BC layer to the commands, too 39261c27 Fix the CI chain
Description ----------- | Q | A | -----------------| --- | Fixed issues | Implements #1088 | Docs PR or issue | TODO This PR renames the `web` folder to `public` as discussed here: contao/contao#1088 (comment) @contao/developers How do we want to implement backwards compatibility? I see two options: 1. Add a check in the `Configuration` class: If `contao.web_dir` is `public` and there is no `public` folder but a `web` folder, change the value to `web` automatically. 2. Make the `GenerateSymlinkCommand` generate a symlink from `public` to `web` if a `web` folder exists. I am in favor of solution no. 1, because I find having two different public folders confusing. WDYT? Commits ------- c398fbaa Rename the "web" folder to "public" a56bfaf5 Use /public instead of /web everywhere 40c6b92f Dynamically set the default value c8bd3060 Add the BC layer to the commands, too 39261c27 Fix the CI chain
Since Symfony 4.4, in a regular Symfony application you would have support for the following structure:
config/
config/
public/
public/
src/
src/
templates/
templates/
translations/
translations/
Basically, everything in the bundle is consistent with the application itself.
After this PR is merged, the Contao Managed Edition would support the following:
config/
config/
contao/
contao/
web/
public/
src/
src/
templates/
templates/
translations/
translations/
So only the
web/
folder would be inconsistent with the regular Symfony application and bundle structure.I know this has been discussed in the past and it was decided against it - mostly to not cause more confusion within the community (I think?). But due to the recent PR I would like to bring it up and discuss it again :)
The text was updated successfully, but these errors were encountered: