title: Getting method entity object from event listener
body: <p>I have an event for the kernel.controller. My question is: Is there any way to get the arguments of the method (in this case the entity object Lead) from this event, or from any other?</p>
  <pre><code>/**
   * @Route(&quot;/view/{id}&quot;, name=&quot;lead_view&quot;)
   */
  public function view(Lead $lead) :Response {
      ///....
  }
  
  
  public function onKernelController(ControllerEvent $event): void
  {
  
      $params = $event-&gt;getRequest()-&gt;attributes-&gt;get('_route_params');
  }
  </code></pre>
  <p>I understand that maybe the conversion to the entity object is done after the kernel.controller event, is it possible to get it from the kernel.response event?</p>
  <p>Thanks</p>