-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Deprecate Validators::validateEntityName()
#6510
Deprecate Validators::validateEntityName()
#6510
Conversation
e0177d6
to
cec6297
Compare
@@ -51,6 +55,12 @@ public static function validateUsername($username) | |||
*/ | |||
public static function validateEntityName($shortcut) | |||
{ | |||
@trigger_error(sprintf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there is a testcase which needs to be marked with @legacy
cec6297
to
7ab36c6
Compare
* NEXT_MAJOR: Remove this test. | ||
* | ||
* @group legacy | ||
* | ||
* @dataProvider getValidateEntityNamesWithExceptionTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This getValidateEntityNamesWithExceptionTests()
needs to be removed as well in the next major
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
|
||
### Deprecated `Sonata\AdminBundle\Command\Validators::validateEntityName()` | ||
|
||
In version 3.77, the shortcut notation for model class names (`AppBundle:User`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In version 3.77, the shortcut notation for model class names (`AppBundle:User`) | |
In version 3.x, the shortcut notation for model class names (`AppBundle:User`) |
until released? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version 3.77 is already released.
7ab36c6
to
c629c0c
Compare
Thanks @phansys |
Subject
Deprecate
Validators::validateEntityName()
.I am targeting this branch, because this change respects BC.
Changelog