public function isComponentVerified(string $name, Request $request, Component $parent): bool
    {
        $reflection = new ComponentReflection($parent);
        $method = 'createComponent'.ucfirst($name);
        if ($reflection->hasMethod($method)) {
            $factory = $reflection->getMethod($method);
            try {
                $this->checkReflection($factory, $request, $parent->getParent() !== null ? $parent->getUniqueId() : null);
            } catch (VerificationException $e) {
                return false;
            }
        }

        return true;
    }
public function isComponentVerified(string $name, Request $request, Component $parent): bool
    {
        $reflection = new ComponentReflection($parent);
        $method = 'createComponent'.ucfirst($name);
        if ($reflection->hasMethod($method)) {
            $factory = $reflection->getMethod($method);
            try {
                $this->checkReflection($factory, $request, $parent->getParent() !== null ? $parent->getUniqueId() : null);
            } catch (VerificationException $e) {
                return false;
            }
        }

        return true;
    }
public function isComponentVerified ( string $ name , Request $ request , Component $ parent ) : bool { $ reflection = new ComponentReflection ( $ parent ) ; $ method = 'createComponent' . ucfirst ( $ name ) ; if ( $ reflection -> hasMethod ( $ method ) ) { $ factory = $ reflection -> getMethod ( $ method ) ; try { $ this -> checkReflection ( $ factory , $ request , $ parent -> getParent ( ) !== null ? $ parent -> getUniqueId ( ) : null ) ; } catch ( VerificationException $ e ) { return false ; } } return true ; }
Checks whether the parent component can create the subcomponent with given name.
Checks whether the parent component can create the subcomponent with given name .