How can I detect in which bundle am I?
for exemple, when I\'m in web.com/participants/list, I want to read \"participants\".
Well you can get the controller of the current route by,
$request->attributes->get('_controller');
You can parse the bundle name from it.