You are here

public function RequestContentProxy::getContent in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestContentProxy::getContent()

Returns the request body content.

Parameters

bool $asResource If true, a resource will be returned:

Return value

string|resource The request body content or a resource to read the body stream.

Throws

\LogicException

Overrides Request::getContent

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 1878

Class

RequestContentProxy

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function getContent($asResource = false) {
  return http_build_query(array(
    '_method' => 'PUT',
    'content' => 'mycontent',
  ));
}