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: URL decorator hooks #78

Open
wimski opened this issue Apr 2, 2024 · 0 comments
Open

Feature: URL decorator hooks #78

wimski opened this issue Apr 2, 2024 · 0 comments

Comments

@wimski
Copy link
Contributor

wimski commented Apr 2, 2024

Add the ability to decorate/process generated URLs with application specific data.

interface UrlDecoratorHookInterface
{
    public function handle(AttachmentInterface $attachment, string $url, ?string $variant = null): string;
}
// config/paperclip.php

'url-decorator-hooks' => [
    MyHook::class, // implementing UrlDecoratorHookInterface
],
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

1 participant