Slim v2 question on a line of code

I’m learning slim by trying to update a api frim slim v2 to v3

i came across this line of code


what does this do? and how to write that in v3

anyone can help on this?

I’m not familiar with Slim 2. But I couldn’t find getPathInfo. Do you mean “getResourceUri” instead?