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);
                }
            }
        }
    }
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);
                }
            }
        }
    }
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 ) ; } } } }
Listen kernel.controller_arguments event for validate input resources

@param FilterControllerArgumentsEvent $event

@throws ViolationListException
Listen kernel . controller_arguments event for validate input resources