-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[6.0] Drop Bootstrap::framework #44991
base: 6.0-dev
Are you sure you want to change the base?
Conversation
c5bafe0
to
9fbe4e3
Compare
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.
can you please do only on chance in one pr.
- you update package-lock.json (version numer)
- you change code style
- you use deprecated Factory::getDocument()
and the only thing this PR should do is to remove lines 588 to 616 in the Bootstrap.php
9fbe4e3
to
a83af47
Compare
Istead fo removing, I would move it to the compat plugin. |
Do we have to add the deprecated tag to the methods in the compat plugin as well? |
To me it feels redundant, as it will never show up in the IDE |
I agree that it wont show up in the IDE, but it will prevent any discussions in the future about removal and deprecation if you move the tag from the old code also over to the new code. |
Thank you! |
@dgrammatiko I like this change and the addition to the compatibility plugin, to then remove it after. |
the implementation in the b/c plugin is not optimal. please add a new Class for this function and also an option to disable "all html helper functions" (do we have more?) and make it as option please. |
what namespace? is
simple toggle should be ok here? @softforge the first batch of requests is already done, I'll do the lest 2 later on (or tomorrow) |
yes namespace is ok, we already have yes/no fields in the config. something like that |
I have tested this item ✅ successfully on 30d3736 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44991. |
@@ -8,6 +8,8 @@ PLG_COMPAT_FIELD_CLASSES_ALIASES_LABEL="Classes Aliases" | |||
PLG_COMPAT_FIELD_CLASSES_ALIASES_DESCRIPTION="Add class aliases for classes which have been renamed or moved to a namespace." | |||
PLG_COMPAT_FIELD_ES5_ASSETS_DESCRIPTION="Activate this option if your extension requires *.es5 assets which has resulted in an exception. The assets provided are empty but prevent the exception." | |||
PLG_COMPAT_FIELD_ES5_ASSETS_LABEL="ES5 Assets" | |||
PLG_COMPAT_FIELD_HTML_HELPERS_DESCRIPTION="Activate this option if your extension requires deprecated HTMLHelper classes or functions. When enabled, will provide backward compatibility to the prior major version." |
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.
why not state the version number
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've tried the not original take here and I copied that part from here:
PLG_COMPAT_XML_DESCRIPTION="If you use extensions which are not using the current Joomla Coding standards then this plugin, when enabled, will provide backward compatibility to the prior major version."
@@ -8,6 +8,8 @@ PLG_COMPAT_FIELD_CLASSES_ALIASES_LABEL="Classes Aliases" | |||
PLG_COMPAT_FIELD_CLASSES_ALIASES_DESCRIPTION="Add class aliases for classes which have been renamed or moved to a namespace." | |||
PLG_COMPAT_FIELD_ES5_ASSETS_DESCRIPTION="Activate this option if your extension requires *.es5 assets which has resulted in an exception. The assets provided are empty but prevent the exception." | |||
PLG_COMPAT_FIELD_ES5_ASSETS_LABEL="ES5 Assets" | |||
PLG_COMPAT_FIELD_HTML_HELPERS_DESCRIPTION="Activate this option if your extension requires deprecated HTMLHelper classes or functions. When enabled, will provide backward compatibility to the prior major version." | |||
PLG_COMPAT_FIELD_HTML_HELPERS_LABEL="HTML Helpers" |
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.
to avoid confusion should this not be specific and refer to boostrap html helpers
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.
Hmm, Harald suggested one switch for all (probably there are more, haven't really checked) of them: #44991 (comment)
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.
FWIW one or multiple switches is fine by me
Pull Request for Issue # .
Summary of Changes
Testing Instructions
HTMLHelper::_('bootstrap.framework');
somewhere in theindex.php
of the atum templateActual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org: PR
No documentation changes for manual.joomla.org needed