original_string: public function onKernelControllerArguments(FilterControllerArgumentsEvent $event): void
      {
          $arguments = $event->getArguments();
  
          foreach ($arguments as $argument) {
              if ($argument instanceof ResourceInterface) {
                  $violationList = $this->validator->validate($argument);
  
                  if (count($violationList)) {
                      throw ViolationListException::create($violationList);
                  }
              }
          }
      }
code: public function onKernelControllerArguments(FilterControllerArgumentsEvent $event): void
      {
          $arguments = $event->getArguments();
  
          foreach ($arguments as $argument) {
              if ($argument instanceof ResourceInterface) {
                  $violationList = $this->validator->validate($argument);
  
                  if (count($violationList)) {
                      throw ViolationListException::create($violationList);
                  }
              }
          }
      }
code_tokens: public function onKernelControllerArguments ( FilterControllerArgumentsEvent $ event ) : void { $ arguments = $ event -> getArguments ( ) ; foreach ( $ arguments as $ argument ) { if ( $ argument instanceof ResourceInterface ) { $ violationList = $ this -> validator -> validate ( $ argument ) ; if ( count ( $ violationList ) ) { throw ViolationListException :: create ( $ violationList ) ; } } } }
docstring: Listen kernel.controller_arguments event for validate input resources
  
  @param FilterControllerArgumentsEvent $event
  
  @throws ViolationListException
docstring_tokens: Listen kernel . controller_arguments event for validate input resources