Skip to content

Commit

Permalink
Removed confusing function call.
Browse files Browse the repository at this point in the history
This addresses #26 and #15.
  • Loading branch information
Jim Schmid committed Jul 14, 2013
1 parent cbb87b5 commit bff5b86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/doc/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class UploadListener
The `UploaderResponse` class implements the `ArrayAccess` interface, so you can just add data using it like an array:

```php
$response['id'] = $uploadedImage->getId();
$response['url'] = $uploadedImage->getUrl();
$response['id'] = $id;
$response['url'] = $url;
```

If you like to indicate an error, be sure to set the `success` property to `false` and provide an error message:
Expand All @@ -31,4 +31,4 @@ $response->setSuccess(false);
$response->setError($msg);
```

> Do not use the keys `success` and `error` if you provide custom data, they will be overwritten by the internal properties of `UploaderResponse`.
> Do not use the keys `success` and `error` if you provide custom data, they will be overwritten by the internal properties of `UploaderResponse`.

0 comments on commit bff5b86

Please sign in to comment.