"In Front" in Cycles
You can still do the same thing in the compositor with View Layers. You need to create collections for the objects you want to render in front / behind, as well as new view layers (all buttons for this are located at the upper right by default). You can then go through each view layer, right click the collections you DONT want to see with it, "View layer > Disable from View Layer". View layers should work the same way as render layers prior.