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

Feature/digitalocean spaces #1706

Closed

Conversation

jessequinn
Copy link

@jessequinn jessequinn commented Feb 24, 2020

Subject

Allows for DigitalOcean Spaces to be used based on S3.

I am targeting this branch, because it is current.

I believe this addresses no issues at the moment other than the need for Spaces integration. Based on S3 filesystem. If new adaptor is made, currently in backlog, it will be easily integrated.

Changelog

Added

  • Added DigitalOcean Spaces support

    • Update the tests
    • Update the documentation

->replaceArgument(2, ['create' => $config['filesystem']['spaces']['create'], 'region' => $config['filesystem']['spaces']['region'], 'directory' => $config['filesystem']['spaces']['directory'], 'ACL' => $config['filesystem']['spaces']['acl']])
;

$container->getDefinition('sonata.media.metadata.amazon')
Copy link
Member

Choose a reason for hiding this comment

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

amazon?

Copy link
Author

@jessequinn jessequinn Feb 24, 2020

Choose a reason for hiding this comment

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

from what i understand DO Spaces is s3-compliant. However, that is a good question if we need it at all. It may be required by Gaufrette AwsS3 adaptor.

@@ -251,6 +251,50 @@ private function addFilesystemSection(ArrayNodeDefinition $node): void
->end()
->end()

->arrayNode('spaces')
Copy link
Member

Choose a reason for hiding this comment

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

Can you please try to extract some small methods. This will improve readability.

@core23
Copy link
Member

core23 commented Jun 17, 2020

Can you please finish this @jessequinn ?

@anacona16
Copy link

anacona16 commented Jul 30, 2020

I was able to use Sonata Media with DigitalOcean Spaces using this approach #1774 and the sonata s3 configuration, so I think this change is not needed.

@jordisala1991
Copy link
Member

This one should not be necessary anymore

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

Successfully merging this pull request may close these issues.

5 participants