Skip to content

[3.0][Security] Remove deprecated features (follow up of #15899) #16035

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
Oct 2, 2015

Conversation

Koc
Copy link
Contributor

@Koc Koc commented Sep 30, 2015

Q A
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets #15899
License MIT
Doc PR -
  • updated UPGRADE-3.0.md
  • removed unused supportsClass methods
  • changed visibility of supportsAttribute methods from public to private, removed inheritdoc annotation from them because there is no definition for this methods in parent interface
  • removed tests for supportsClass and supportsAttribute method
  • removed unused mock creation

@Koc Koc force-pushed the security-remove-deprecations branch 2 times, most recently from 5a5b2bd to 090f0e8 Compare October 1, 2015 08:18
@@ -91,4 +75,9 @@ public function vote(TokenInterface $token, $object, array $attributes)

return $result;
}

private function supportsAttribute($attribute)
Copy link
Member

Choose a reason for hiding this comment

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

why not simply inline these conditions?

Copy link
Member

Choose a reason for hiding this comment

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

agree

@wouterj
Copy link
Member

wouterj commented Oct 1, 2015

Status: Needs work

}
```

* The `AuthenticatedVoter::supportsClass()`, `ExpressionVoter::supportsClass()` and `RoleVoter::supportsClass()`
Copy link
Member

Choose a reason for hiding this comment

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

same should be said for all supportsAttribute() methods (even when they are private, they are no longer part of the public API)

@Koc Koc force-pushed the security-remove-deprecations branch 3 times, most recently from 5a24236 to e2d859c Compare October 1, 2015 12:10
@Koc
Copy link
Contributor Author

Koc commented Oct 1, 2015

@fabpot @wouterj done

@Koc Koc force-pushed the security-remove-deprecations branch 2 times, most recently from a93983f to 314fde6 Compare October 1, 2015 13:38
@Koc Koc force-pushed the security-remove-deprecations branch from 314fde6 to 437398d Compare October 1, 2015 13:40
@Koc
Copy link
Contributor Author

Koc commented Oct 1, 2015

security tests pass ok

@fabpot
Copy link
Member

fabpot commented Oct 2, 2015

Thank you @Koc.

@fabpot fabpot merged commit 437398d into symfony:master Oct 2, 2015
fabpot added a commit that referenced this pull request Oct 2, 2015
#15899) (Koc)

This PR was merged into the 3.0-dev branch.

Discussion
----------

[3.0][Security] Remove deprecated features (follow up of #15899)

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

- updated UPGRADE-3.0.md
- removed unused `supportsClass` methods
- changed visibility of `supportsAttribute` methods from public to private, removed `inheritdoc` annotation from them because there is no definition for this methods in parent interface
- removed tests for `supportsClass` and `supportsAttribute` method
- removed unused mock creation

Commits
-------

437398d [3.0][Security] Remove deprecated features (follow up of #15899)
@Koc Koc deleted the security-remove-deprecations branch October 2, 2015 15:29
@fabpot fabpot mentioned this pull request Nov 16, 2015
fabpot added a commit that referenced this pull request Jun 1, 2016
This PR was merged into the 2.8 branch.

Discussion
----------

document method name changes in Voter class

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

Commits
-------

c0b9e99 document method name changes in Voter class
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