protected function getPayloadResolver(ExecutorInterface $executor)
    {
        $key = $executor->getName();

        if (!array_key_exists($key, $this->resolvers)) {
            $resolver = new OptionsResolver();
            $executor->configurePayload($resolver);

            $this->resolvers[$key] = $resolver;
        }

        return $this->resolvers[$key];
    }
protected function getPayloadResolver(ExecutorInterface $executor)
    {
        $key = $executor->getName();

        if (!array_key_exists($key, $this->resolvers)) {
            $resolver = new OptionsResolver();
            $executor->configurePayload($resolver);

            $this->resolvers[$key] = $resolver;
        }

        return $this->resolvers[$key];
    }
protected function getPayloadResolver ( ExecutorInterface $ executor ) { $ key = $ executor -> getName ( ) ; if ( ! array_key_exists ( $ key , $ this -> resolvers ) ) { $ resolver = new OptionsResolver ( ) ; $ executor -> configurePayload ( $ resolver ) ; $ this -> resolvers [ $ key ] = $ resolver ; } return $ this -> resolvers [ $ key ] ; }
Returns a cached version of the payload resolver for an executor.

@param ExecutorInterface $executor

@return OptionsResolver
Returns a cached version of the payload resolver for an executor .