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

Exist some way to attach data or headers to response? #133

Open
rkmax opened this issue Sep 14, 2014 · 1 comment
Open

Exist some way to attach data or headers to response? #133

rkmax opened this issue Sep 14, 2014 · 1 comment
Milestone

Comments

@rkmax
Copy link

rkmax commented Sep 14, 2014

example

class UploadListener {
    public function onUpload(PostPersistEvent $event)
    {
       //...
        $event->getResponse()->setContent(array('filename' => $dynamicName));
        //or
        $event->getResponse()->addHeaders(array('X-Filename' => $dynamicName))
    }
}
@sheeep
Copy link
Contributor

sheeep commented Sep 17, 2014

#71 (comment)

Not yet, I'm afraid. This was bad engineering in the first place and will be refactored in the next major version.

@sheeep sheeep added this to the Version 2.0 milestone Sep 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants