The Secrets Vault
... support the
Symfony project, so it's a win-win.
Anyway, the trickiest part of the process is Step 2 - creating the .env.local
file with all of your production values, which will include things like API keys,
your database ...
Input DTO Denormalizing IRI Strings
... doing this.
And... fortunately API Platform comes with an ItemNormalizer whose job is to
change IRI strings into objects by querying the database... or... more accurately,
by calling the item data provider.
So why isn't ...
DTO Input Initializer
... what's happening now: API Platform sets the existing CheeseListing onto
OBJECT_TO_POPULATE, but since we're not deserializing into that type of object,
it's ignored and a new CheeseListingInput is created:
But... we ...
Sluggable Doctrine Extensions
... entity
is queried for or other times. You do this by creating an event subscriber or
entity listener. We do have an example of an entity listener in our
API Platform tutorial if you're interested.
Next, let's add two more ...
The await Keyword
...
that API Platform adds to every resource. It's... just more useful than a
database ID or UUID because it's a real URL: we could make a request to this
address to fetch that specific product.
That "usefulness" won't be ...
Serializer Error Renderer JSON/XML Errors
... change this data, you could do that by adding your own custom normalizer.
We actually talk about this in our
API Platform Security Tutorial.
You could decorate the ProblemNormalizer... and maybe just add or tweak some
data ...
... is actually `UuidDenormalizer` - https://github.com/api-platform/core/blob/2.7/src/RamseyUuid/Serializer/UuidDenormalizer.php - so not the `UuidNormalizer` that I had linked to earlier - that one is in the `Identifier ...
... annotations to php8 attributes (though I could have converted the generated code back to annotations instead, I think). Now on it part 2!
```
api-platform/core v2.6.8
doctrine/annotations ...
... time, the `ApiPlatform\Core\JsonLd\Serializer\ObjectNormalizer` is hit
5. It call his decorated serializer after set `$context['api_empty_resource_as_iri'] = true`. There is a big comment in the Api Platform code wich ...
Hi Chloé!
Excellent, crazy question - I like it! So, this is something that we'll talk about in the next tutorial - https://symfonycasts.com/screencast/api-platform-extending - but it will be a few more days or even a ...
... //symfonycasts.com/screencast/api-platform-security/access-control-voter
This will allow you to do any checks you need:
A) Check to make user the current user is authenticated
B) If the currently-authenticated user === the user that's ...
Hi Pedro,
I am very sorry you have the same problem, but also glad. This proves I'm not grazy !!!
The 'solution' for now is very very bad but it works:
It's the vendor\api-platform\core\src\Bridge\Doctrine\Orm ...
Decoration Override Core Services AsDecorator
... is... sort of all over!
In API Platform, it's common to use decoration to extend core services like
the ContextBuilder. And Symfony itself uses decoration pretty commonly to add
debugging features while we're in the dev ...
FrameworkBundle Recipe Part 2 The Kernel Class
... relatively new security-related feature that's quickly been
adopted by most browsers. We talk more about it inside our
API Platform Security
tutorial - but this setting shouldn't cause problems in most setups and is ...
Testing Updating Roles Refreshing Data
...
When you make a request for an operation, the normalization groups are determined on
an operation-by-operation basis. In the case of a User, API Platform is
using user:read for normalization and user:write for ...
... it will work:
1) You setup a custom resource metadata factory, like we did here: https://symfonycasts.com/screencast/api-platform-security/resource-metadata-factory
2) Inside, on a high level, you would look for your ...
... just build this as a custom route/controller in Symfony, and not through API Platform. Use the serializer directly to serialize the User object into the `jsonld` format.
Let me know if this helps - excellent question!
Cheers!
One year diversity initiative
... program
already. We also, or API Platform, sponsored Rails Girls Summer of Code. Um,
they also offered to mentor. Uh, in the end, unfortunately they weren't picked
as a mentor. But, what I got from Kevin was actually by ...
Back to the Basics Symfony local Web Server
... may be slow depending on the platform, especially on a Mac. I mean
it is for me at least. Um, and it's kind of inconvenient and I'm going to talk
about that as well. Um, Nginx and Apache, it depends on your skills on ...
1022
API Platform
Filter Results