我有一些方法可以从实现ClassResourceInterface的控制器获取实体名称吗?
用户控制器:
class UserController extends AbstractRestController {
}
Common Controller:
abstract class AbstractRestController
extends FOSRestController
implements ClassResourceInterface
{
public function cgetAction(Request $request){
$enityName=????? // Shoud be "User"
}
}