Skip to content

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Mar 14, 2022

No description provided.

solverat and others added 27 commits November 24, 2021 16:54
…latform#1456)

Using classic decoration for the custom Data Persister in services.yaml will replace the core persister.
Probably this isn't the most common case scenario; normally you would *add* your custom Data Persister to the chain of persisters instead of replacing it.
Use attribute binding instead, as already explained in SymfonyCasts' video.
…i-platform#1468)

* Replace ORM annotations to PHP attributes

* Replace @Orm annotations to PHP attributes

* Add #[ORM\Entity]

* Correction of #[ORM] attribute

* Modification of @Orm\Column to #[ORM\Column] for $email property

* Modification of @Assert annotation to #[Assert] attribute

* Corrections of PR api-platform#1466

* Docs: update PHP types for property + update old annotations with PHP attributes

* Correction of typo : insersedBy to inversedBy

* Delete unnecessary parenthesis

* Remove type float

* Modify targetEntity value

* Add Question type

* Add Answer type

* Delete PHPDoc without @var type

* Replace PHP attributes outside annotations

* Add string type to $content

* Remove targetEntity, mappedBy and inversedBy for OneToOne relation

* Remove type DateTimeInterface due to validation test

Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
…te (api-platform#1472)

* docs: Add information about how to significantly improve the test suite

Hi,

this iPR adds an inromation for the page about `JWT` authentication about how to make the tests fast.

The issue boils down to the very slow password hashers that are used in tests by default.

Each time we start a new project, or review the current one, we have to do it, because tests are extremely slow.

This is only one of the many optimizations available for the end developer, but let's start here. Other ones are listed in by blog post: https://maks-rafalko.github.io/blog/2021-11-21/symfony-tests-performance/#using-more-simple-password-hasher

* Update wording in core/jwt.md

Co-authored-by: Alan Poulain <contact@alanpoulain.eu>

Co-authored-by: Alan Poulain <contact@alanpoulain.eu>
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
@soyuka soyuka merged commit d81778d into api-platform:main Mar 14, 2022
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.