Hey, thanks for these awesome tutorials.
I have some slight problems using the new symfony executable: after setting up https by doing `symfony server:ca:install` i can't use the api-platform client-generator in my ...
Running Code On Publish
Oh, quick, minor thing about state processors. The make:state-processor command
created the process() method with a void return. And... that makes sense. API
Platform passes us the data and our job is just to save that ...
... your project with the API Platform distribution? If so, then yes, the cookie config is not there by default :) https://github.com/api-platform/api-platform/blob/main/api/config/packages/framework.yaml
> and to put the ...
...
Executing command (C:\Users\ack\PhpstormProjects\API-Platform-Training): git branch --no-color --no-abbrev -v
Executing command (C:\Users\ack\PhpstormProjects\API-Platform-Training): git describe --exact-match --tags ...
Simpler State Processor
... tell API Platform when to use this processor. In DragonTreasure, we
want this to be used for both our Post and Patch operations. Set
processor to DragonTreasureStateProcessor::class... and repeat that down for
Patch ...
Custom Resource State Processor
... Patch() so users can update the status of an existing quest
when they complete it.
Upon refreshing... I love it!
Speaking of that Patch operation, when it's used, API Platform will call the
state processor, so we can ...
Setting the UUID on POST
...
Remember: API platform - well really, Symfony's serializer - is really good at
reading your types. It notices that the type for $uuid is UuidInterface
and uses that to try to find a denormalizer that understands this ...
Custom Filter for Custom Resources
... filter, we extended AbstractFilter:
but that class only works for entity resources. This time, implement FilterInterface. Now, be careful.
There are multiple FilterInterface in API platform. One is for the ORM, and
even ...
... arguments - one of the errors in your stacktrace comes from this line - https://github.com/api-platform/core/blob/52a72743028d78255c14870b80eeb195e91740d8/src/Serializer/AbstractItemNormalizer.php#L286 (it's line 283 in your ...
... with the command symfony serve -d. So the only 2 differences I see is that when I have created the project following the instructions of api-Platform we start by running the instructions "composer create-project symfony ...
Deny Access with The security Option
... use access_control for several things. But most
of the time I put my authorization rules inside controllers. But... of course,
with API Platform, we don't have controllers. All we have are API resource
classes, like ...
... :instantiateObject()` is where we're looking. So let's look at some debugging facts:
A) If I `dd($constructorParameters)` here - https://github.com/api-platform/core/blob/022fb6a05701fa5a08f6357c82c1b95fbf0fe4b6/src ...
Hi |mention:213|,
I suspect a regression in API Platform 3.3.
If I run the tests in the "finish" folder after upgrading Symfony to 6.4 and API Platform to 3.3, then the `patch()` calls return `null` again.
If I ...
... ": "The class \"App\\Entity\\DragonTreasure\" cannot be retrieved from \"App\\ApiResource\\UserApi\".",
"file": "/var/www/html/vendor/api-platform/core/src/Doctrine/Common/State/LinksHandlerTrait.php ...
Thanks for your great and detailed answer. No, no. I don't expect to see Mercure in any "heavy" way/use. But would be cool to see it in action with api platform - 2 maybe 3 episodes (just like in symfony ux tutorial). I ...
Hi kyotomano!
This is a perfect time to ask these questions :).
> Is this course going to be divided into 3 parts just like api platform 2? [base, security, custom resources].
Probably, yes. Though there are a ...
... code block https://symfonycasts.com/screencast/api-platform-extending/property-metadata#codeblock-9f8f70a4db (if you expand it) is a "string" instead of an array. This seems like the same issue that we were talking about on ...
Hey Dang !
Yes, there is a new PATCH, I think it's new in Api Platform 2.5. The explanation of what's going on can be found here: https://github.com/api-platform/core/issues/4344#issuecomment-873418011
I have not ...
... Platform until API Platform 2.6" bug/error... but then I saw that you *did* in fact upgrade to API Platform 2.6.
There is one thing that is mysteriously missing from the logs you posted. Because you are using session ...
Hey @Aaron!
Ah! Excellent detective work! My immediate guess would be this guy: `Upgrading api-platform/core (v2.4.5 => v2.5.7)`.
You could try running adding (if it's not there already directly) api-platform/core to ...
1027
API Platform
Filter Results