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

Availablity of Google Cloud Storage Resolver like AwsS3Resolver #666

Closed
mappedinn opened this issue Nov 22, 2015 · 6 comments
Closed

Availablity of Google Cloud Storage Resolver like AwsS3Resolver #666

mappedinn opened this issue Nov 22, 2015 · 6 comments

Comments

@mappedinn
Copy link

Hi,

LiipImagineBundle does not provide a Resolver for Google Cloud Storage like for AWS S3. This resolver is needed for enabling the application of LiipImagineBundle filters on the images I stored on Google Cloud Storage. This resolver will be used in this a way similar to aws s3:

liip_imagine.cache.resolver.google_cloud_storage:
    class: Liip\ImagineBundle\Imagine\Cache\Resolver\GoogleCloudStorageResolver
    arguments:
        - "@app.google_cloud_storage.service"
        - %gcs_bucket%
    tags:
        - {name: 'liip_imagine.cache.resolver', resolver: 'resolver.google_cloud_storage'}

To do so, I do need to create that class GoogleCloudStorageResolver as described in this link on cache resolvers. I know that I have define the methods of the ResolverInterface but I don't know from where to start.

public function isStored($path, $filter);
public function resolve($path, $filter);
public function store(BinaryInterface $binary, $path, $filter);
public function remove(array $paths, array $filters);

If there is any link, I will be happy.

Thanks

@mappedinn mappedinn changed the title Availablity of Google Cloud Storage Resolver like AwsS3Resolver Availablity of Google Cloud Storage Resolver like AwsS3Resolveri Nov 22, 2015
@mappedinn mappedinn changed the title Availablity of Google Cloud Storage Resolver like AwsS3Resolveri Availablity of Google Cloud Storage Resolver like AwsS3Resolver Nov 24, 2015
@mappedinn
Copy link
Author

Merry christmas @lsmith77 @makasim
One question: is LiipImagineBundle planning to develop Google Cloud Storage Resolver like AwsS3Resolver?

Best,

@makasim
Copy link
Collaborator

makasim commented Dec 26, 2015

No, I dont have such plans cuz I dont work with google. If you work with Google Cloud Storage, maybe you can contribute it?

@mappedinn
Copy link
Author

@makasim thank you very much. I will try my best.

@wieger
Copy link

wieger commented Sep 8, 2016

@mappedinn Hi, I'm trying to achieve the same thing, get liip_imagine on top of Google Cloud Storage. Did you make any progress on this and would you be willing to open-source your solution?

@mappedinn
Copy link
Author

@wieger Hi, my solution is described in details here #698

I did not managed to make it work correctly, but it seems that @girayk made it work!

Keep me updated...

@michellesanver
Copy link
Contributor

I do not believe this is something for this bundle to solve, also: Closed in favour of the discussion in #698

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

No branches or pull requests

4 participants