Skip to content

Commit

Permalink
Merge pull request #2 from PhantPHP/fix
Browse files Browse the repository at this point in the history
Fix reserved name
  • Loading branch information
lennyrouanet authored May 18, 2023
2 parents 10b50ca + f01b6b8 commit 57db193
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ $clientS3->deleteObject($bucket, 'foo');

```php
use Phant\Client\Service\S3 as ClientS3;
use Phant\Client\Service\S3\Object as ClientS3Object;
use Phant\Client\Service\S3\Bucket as ClientS3Bucket;

$clientS3Object = new ClientS3Object(
$clientS3Bucket = new ClientS3Bucket(
new ClientS3(
$region,
$endpoint,
Expand All @@ -127,7 +127,7 @@ $clientS3Object = new ClientS3Object(
),
$bucket
);
$clientS3Object->set('foo', 'bar');
$bar = $clientS3Object->get('foo');
$clientS3Object->delete('foo');
$clientS3Bucket->set('foo', 'bar');
$bar = $clientS3Bucket->get('foo');
$clientS3Bucket->delete('foo');
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Phant\Client\Port\S3;

interface Object
interface Bucket
{
public function set(
string $key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Phant\Client\Service\S3;

class Object implements \Phant\Client\Port\S3\Object
class Bucket implements \Phant\Client\Port\S3\Bucket
{
public function __construct(
protected readonly S3 $client,
Expand Down

0 comments on commit 57db193

Please sign in to comment.