Issue Feature Rejected

#103526Allow the use of public PHP constants in TypoScript and Fluid

Dieter Porth 04/03/24, 10:11 updated 06/11/24, 15:11

Description

I try to define constants only at one place.

*Feature-wish*
I have defined a public constant in my extension. `vendor\myextension\config\SelfConst::MY_CONST` has the value 2.
I want to transfer that value into the constants of the typoscript as a default value.
The typoscript should look something like this.

lib.foo.data = getConst : vendor\myextension\config\SelfConst::MY_CONST

*Wish Additional Viewhelper*
A viewhelper would be helpfull, which allows the output of public php-constants in the fluid-template.
@
<f:const>Vendor\MyExt\SelfConstClass::FOO</f:const>

@
(see attached code as example – the namespace must be modified)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.