Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for AsyncAws #639

Merged
merged 13 commits into from
Oct 5, 2020
Merged

Adding support for AsyncAws #639

merged 13 commits into from
Oct 5, 2020

Conversation

Nyholm
Copy link
Collaborator

@Nyholm Nyholm commented Jul 20, 2020

This will fix #638

$this->service->createBucket([
'Bucket' => $this->bucket,
]);
$this->bucketExists = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could wait until the bucket exists here

@Nyholm
Copy link
Collaborator Author

Nyholm commented Oct 4, 2020

Friendly ping for @nicolasmure and @nm2107

Do you need help maintaining Gaufrette and GaufretteBundle?

@alexpozzi
Copy link
Member

alexpozzi commented Oct 5, 2020

Hello @Nyholm,
@nicolasmure and @nm2107 (which are the same person 😄) are not maintaining this library anymore so help is very welcome.
I can grant you access to this repository and to the associated SF bundle if it's okay with you.

@Nyholm
Copy link
Collaborator Author

Nyholm commented Oct 5, 2020

Sure. Thank you.

@alexpozzi
Copy link
Member

Done, don't hesitate to ping me for help or assign me code reviews, I'll do my best to be reactive 😉

Thanks for your help!

@Nyholm
Copy link
Collaborator Author

Nyholm commented Oct 5, 2020

Thank you.

I've made sure master is green and supports PHP7.4. I've also added some tests on github actions. I removed some deprecated code. There is no point in keeping that around for long.

I'll merge this and test on PHP8. After that I'll release 0.10.

@Nyholm Nyholm merged commit dfcc2e6 into KnpLabs:master Oct 5, 2020
@Nyholm Nyholm deleted the async-aws branch October 5, 2020 19:14
*/
public function __construct(SimpleS3Client $service, $bucket, array $options = [], $detectContentType = false)
{
if (!class_exists(SimpleS3Client::class)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check is useless. If the class does not exist, it is impossible to pass an argument to $service due to the typehint. So this is dead code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is true.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for AsyncAws
4 participants