refactor(metadata): replace HttpOperation constants by raw strings#5494
Conversation
|
Indeed this is a good change, you should change your commit though:
|
Sur thing ! it's done ! |
|
@MarvinCourcier the commit should be changed, not the Pull Request title which is unrelated after merging except for github. |
|
Could you do a profile please? IIRC resolving the constants has a runtime cost that can be significant and it's why we do not use them at least on the hot path. |
|
Indeed, Symfony inlines the |
|
👍 for consistency, but let's use a raw string everywhere then. |
11bb434 to
7c8586d
Compare
7c8586d to
5ce9ed4
Compare
updateing metadata
5ce9ed4 to
599d514
Compare
|
thanks |
As spoken with @chalasr there are string hardcoded operation request which could be replaced with the HttpOperation request const
Maybe this isn't what you want but I thought this would be good to replace those.
I'll gladly take any advice.
I don't know to which branch this should be merged so I'd like your advice.