protected function initializeActionMethodValidators()
    {
        $this->initializeActionMethodValidatorsParent();

        $request = $this->getRequest();

        if (false === $request->hasArgument('name')) {
            throw MissingArgumentException::ajaxControllerNameArgumentNotSet();
        }

        if (false === $request->hasArgument('className')) {
            throw MissingArgumentException::ajaxControllerClassNameArgumentNotSet();
        }

        $className = $request->getArgument('className');

        if (false === class_exists($className)) {
            throw ClassNotFoundException::ajaxControllerFormClassNameNotFound($className);
        }

        if (false === in_array(FormInterface::class, class_implements($className))) {
            throw InvalidArgumentTypeException::ajaxControllerWrongFormType($className);
        }

        $this->arguments->addNewArgument($request->getArgument('name'), $className, true);
    }
protected function initializeActionMethodValidators()
    {
        $this->initializeActionMethodValidatorsParent();

        $request = $this->getRequest();

        if (false === $request->hasArgument('name')) {
            throw MissingArgumentException::ajaxControllerNameArgumentNotSet();
        }

        if (false === $request->hasArgument('className')) {
            throw MissingArgumentException::ajaxControllerClassNameArgumentNotSet();
        }

        $className = $request->getArgument('className');

        if (false === class_exists($className)) {
            throw ClassNotFoundException::ajaxControllerFormClassNameNotFound($className);
        }

        if (false === in_array(FormInterface::class, class_implements($className))) {
            throw InvalidArgumentTypeException::ajaxControllerWrongFormType($className);
        }

        $this->arguments->addNewArgument($request->getArgument('name'), $className, true);
    }
protected function initializeActionMethodValidators ( ) { $ this -> initializeActionMethodValidatorsParent ( ) ; $ request = $ this -> getRequest ( ) ; if ( false === $ request -> hasArgument ( 'name' ) ) { throw MissingArgumentException :: ajaxControllerNameArgumentNotSet ( ) ; } if ( false === $ request -> hasArgument ( 'className' ) ) { throw MissingArgumentException :: ajaxControllerClassNameArgumentNotSet ( ) ; } $ className = $ request -> getArgument ( 'className' ) ; if ( false === class_exists ( $ className ) ) { throw ClassNotFoundException :: ajaxControllerFormClassNameNotFound ( $ className ) ; } if ( false === in_array ( FormInterface :: class , class_implements ( $ className ) ) ) { throw InvalidArgumentTypeException :: ajaxControllerWrongFormType ( $ className ) ; } $ this -> arguments -> addNewArgument ( $ request -> getArgument ( 'name' ) , $ className , true ) ; }
Will take care of adding a new argument to the request, based on the form
name and the form class name found in the request arguments.
Will take care of adding a new argument to the request based on the form name and the form class name found in the request arguments .