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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove constant.js #2969

Merged
merged 2 commits into from Feb 1, 2024
Merged

remove constant.js #2969

merged 2 commits into from Feb 1, 2024

Conversation

vitek-rostislav
Copy link
Contributor

@vitek-rostislav vitek-rostislav commented Jan 5, 2024

Q A
Description, reason for the PR The component was quite misleading - the usage (constant('\\App\\Model\\Advert\\AdvertPositionRegistry::CATEGORIES_ABOVE_PRODUCT_LIST')) made you feel like it is parsing the constants from PHP code but actually, you had to define the constant in constant.js. The key could have been actually anything and it had nothing to do with the PHP constant (if the constant was removed, renamed, or changed its value in PHP, it had no impact on the constant in javascript).
New feature No
BC breaks Yes
Fixes issues ...
Have you read and signed our License Agreement for contributions? Yes

馃寪 Live Preview:

@vitek-rostislav vitek-rostislav merged commit e1602c8 into 14.0 Feb 1, 2024
17 checks passed
@vitek-rostislav vitek-rostislav deleted the rv-remove-constant branch February 1, 2024 08:10
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