Skip to content

[DX] Moved Security constants to a final class instead of a long named interface #12074

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
Sep 29, 2014
Merged

[DX] Moved Security constants to a final class instead of a long named interface #12074

merged 1 commit into from
Sep 29, 2014

Conversation

linaori
Copy link
Contributor

@linaori linaori commented Sep 29, 2014

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR symfony/symfony-docs#4188

This PR is based on feedback from the documentation repository. The DX suggestion was to rename the new SecuritySessionStorageInterface to Security. This would make it easier to use the constants before 2.6 is released. In this PR I have also update all usages of this constant because an open PR is now merged which used those constants.

List of changes:

  • SecurityBundle, usage of constants
  • Security Component (core & http), usage of constants
  • Tests, usage of constants
  • Added a test to verify the sync from Security to SecurityContextInterface for BC purposes

@javiereguiluz
Copy link
Member

I love this proposal. Thanks @iltar for your work. I really can't think of any reason for not merging this.

@fabpot
Copy link
Member

fabpot commented Sep 29, 2014

👍

@henrikbjorn
Copy link
Contributor

Isnt this a BC break as the constants are now located a new place?

@linaori
Copy link
Contributor Author

linaori commented Sep 29, 2014

@henrikbjorn It's a BC break on the master branch only. They have been moved to that interface in my other PR. This change is currently not present in any tag.
https://github.com/iltar/symfony/blob/b96778718507e520596279954937f75c181efc17/src/Symfony/Component/Security/Core/SecuritySessionStorageInterface.php

@hacfi
Copy link
Contributor

hacfi commented Sep 29, 2014

👍 I like it :)

@stof
Copy link
Member

stof commented Sep 29, 2014

👍

@fabpot
Copy link
Member

fabpot commented Sep 29, 2014

Thank you @iltar.

@fabpot fabpot merged commit b23084a into symfony:master Sep 29, 2014
fabpot added a commit that referenced this pull request Sep 29, 2014
…f a long named interface (iltar)

This PR was merged into the 2.6-dev branch.

Discussion
----------

[DX] Moved Security constants to a final class instead of a long named interface

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | symfony/symfony-docs#4188

This PR is based on feedback from the documentation repository. The DX suggestion was to rename the new `SecuritySessionStorageInterface` to `Security`. This would make it easier to use the constants before 2.6 is released. In this PR I have also update all usages of this constant because an open PR is now merged which used those constants.

List of changes:
 - SecurityBundle, usage of constants
 - Security Component (core & http), usage of constants
 - Tests, usage of constants
 - Added a test to verify the sync from `Security` to `SecurityContextInterface` for BC purposes

Commits
-------

b23084a [DX] Moved constants to a final class
@linaori linaori deleted the feature/security-context-split branch April 15, 2016 13:33
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

Successfully merging this pull request may close these issues.

6 participants