-
Notifications
You must be signed in to change notification settings - Fork 494
Upgrade api-platform #6211
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
base: master
Are you sure you want to change the base?
Upgrade api-platform #6211
Conversation
When I issue a composer install in this branch, I get:
(just in case you have something different) |
dc6b40d
to
23d32c5
Compare
@@ -26,7 +26,22 @@ | |||
use Symfony\Component\Uid\Uuid; | |||
use Symfony\Component\Validator\Constraints as Assert; | |||
|
|||
#[ApiResource(operations: [new Get(security: 'is_granted(\'VIEW\', object)'), new Put(security: 'is_granted(\'EDIT\', object)'), new Delete(security: 'is_granted(\'DELETE\', object)'), new GetCollection(security: 'is_granted(\'ROLE_USER\')'), new Post(securityPostDenormalize: 'is_granted(\'CREATE\', object)')], security: 'is_granted(\'ROLE_ADMIN\') or is_granted(\'ROLE_CURRENT_COURSE_TEACHER\')', denormalizationContext: ['groups' => ['c_tool_intro:write']], normalizationContext: ['groups' => ['c_tool_intro:read']])] | |||
#[ApiResource( |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
4a30071
to
311defd
Compare
… and improve operation type check
Replaced the deprecated ApiPlatform namespace with the updated one. This change ensures compatibility with the latest version of the ApiPlatform library and removes potential warnings.
…odern Doctrine methods
Replaced all Symfony Doctrine ORM annotations with PHP 8 attributes to modernize the codebase and improve readability. Additionally, updated type hints and property declarations to enforce strict typing and better align with PHP 8 standards.
…iver' fields in results
…ic type parameters.
Code Climate has analyzed commit 15b4e9e and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
No description provided.