Closed ervaude closed 5 months ago
This feature request is about accessing class properties in fluid via
{foo.bar}
Currently, fluid needs a "getter" method (getProperty, hasProperty, isProperty, etc) to access class properties even if the properties are public:
class Foo { public function __construct(public readonly string $bar) {} // getter for fluid public function getBar(): string { return $this->bar; } }
If we could access public properties directly, we could get rid of the getter methods:
class Foo { public function __construct(public readonly string $bar) {} }
Thanks for looking into this! Cheers
Actually this works just fine since ever. What is your specific issue?
See:
Uh. Probably my bad, I made Daniel create this issue ;)
Haha, glad this already works. All the better!
This feature request is about accessing class properties in fluid via
Currently, fluid needs a "getter" method (getProperty, hasProperty, isProperty, etc) to access class properties even if the properties are public:
If we could access public properties directly, we could get rid of the getter methods:
Thanks for looking into this! Cheers