You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you want to mark a class as resource you have to define a static property on the class or a property on the object. It would be easier if there was a unified way with an attribute something like this:
#[Resource(resourceKey: 'event')]
class Event {
}
Alternatively you could also generate the resource key from the class name as it's usually Str::asTwigVariable($className).
The text was updated successfully, but these errors were encountered:
Currently if you want to mark a class as resource you have to define a static property on the class or a property on the object. It would be easier if there was a unified way with an attribute something like this:
Alternatively you could also generate the resource key from the class name as it's usually
Str::asTwigVariable($className)
.The text was updated successfully, but these errors were encountered: