public function testExposeRequestOptions() { $config = new Configuration(); $options = array(Configuration::EXPOSE_REQUEST_HEADER => 'expose'); $config->setExposeRequestOptions($options); $this->assertEquals($options, $config->getExposeRequestOptions()); }
/** * Handle a pull requests' exposure configuration (GET) * @param RouteMetaData $route (referenced object) */ protected function handlePullExposureConfiguration(RouteMetaData &$route) { $route->setExpose(Query\ExposeFields::create($route)->configureExposeDepth($this->em, $this->config->getExposureDepth(), $this->config->getExposureRelationsFetchType())->configurePullRequest($this->config->getExposeRequestOptions(), $this->request)->toArray()); }