Skip to content

[HttpKernel] Allow signing URIs with a custom query string parameter #21842

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

Merged
merged 1 commit into from
Mar 6, 2017

Conversation

thewilkybarkid
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

UriSigner is currently restricting to using _hash as the query string parameter, this makes is customisable.

@thewilkybarkid
Copy link
Contributor Author

Test failures look unrelated.

*/
public function __construct($secret)
public function __construct($secret, $parameter = null)
Copy link
Member

Choose a reason for hiding this comment

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

$parameter = '_hash', instead of null?

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone Mar 4, 2017
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

👍

@fabpot
Copy link
Member

fabpot commented Mar 6, 2017

Can you add a note in the component CHANGELOG?

@fabpot
Copy link
Member

fabpot commented Mar 6, 2017

Thank you @thewilkybarkid.

@fabpot fabpot merged commit 32301c3 into symfony:master Mar 6, 2017
fabpot added a commit that referenced this pull request Mar 6, 2017
…ring parameter (thewilkybarkid)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[HttpKernel] Allow signing URIs with a custom query string parameter

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

`UriSigner` is currently restricting to using `_hash` as the query string parameter, this makes is customisable.

Commits
-------

32301c3 Allow a custom query string parameter
@fabpot
Copy link
Member

fabpot commented Mar 6, 2017

done in ae2722f

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