I need to put a flag in an kernel.event_listener at stage kernel.controller in order to do something in an kernel.response-listener.
kernel.event_listener
kernel.controller
kernel.response
You can use $request->attributes to pass around information. In your controller listener:
$request->attributes
$request->attributes->set('mykey', 'myvalue');
In your response listener:
$myvalue = $request->attributes->get('mykey');