mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-09 13:48:23 +00:00
Remove no longer used annotation use statements and replace with attribute use statements
This commit is contained in:
@@ -71,10 +71,10 @@ class EntityValueResolver implements ValueResolverInterface
|
||||
{
|
||||
// Common parameter naming patterns
|
||||
$possibleNames = [
|
||||
$name . 'Id',
|
||||
$name . '_id',
|
||||
$this->getShortClassName($type) . '_id',
|
||||
$this->getShortClassName($type) . 'Id',
|
||||
$name.'Id',
|
||||
$name.'_id',
|
||||
$this->getShortClassName($type).'_id',
|
||||
$this->getShortClassName($type).'Id',
|
||||
'id',
|
||||
];
|
||||
|
||||
@@ -111,6 +111,7 @@ class EntityValueResolver implements ValueResolverInterface
|
||||
private function getShortClassName(string $class): string
|
||||
{
|
||||
$parts = explode('\\', $class);
|
||||
|
||||
return end($parts);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user