Gaufrette\Adapter\AmazonS3::read PHP Méthode

read() public méthode

public read ( $key )
    public function read($key)
    {
        $this->ensureBucketExists();
        $response = $this->service->get_object($this->bucket, $this->computePath($key), $this->getMetadata($key));
        if (!$response->isOK()) {
            return false;
        }
        return $response->body;
    }