/** * @param Bucket $config * @param array $request */ public function __construct(Bucket $config, $request) { $this->addExpect('formId'); $this->request = $request; $this->config = $config; $this->response = new Tree('document'); $this->formData = $this->response->getRootNode()->addChild(new Node('form')); }