1016 search results for API Platform

... bundle (why have the extra subdirectory)? However, some pure libraries will come with a Symfony bundle embedded inside of them, and they *will* follow some convention like this. API Platform is one example: it is just a PHP ...
weaverryan
weaverryan
Read Full Comment
... )normalization *context* - https://github.com/api-platform/core/blob/master/src/Serializer/Filter/PropertyFilter.php#L43 - and it is called both at the start of the request during read/deserialization AND later during serialization ...
weaverryan
weaverryan
Read Full Comment
... creating 2 separate database containers - one for the normal environment and one for the test environment. Try downloading the code from this tutorial - https://symfonycasts.com/screencast/api-platform-extending - and ...
weaverryan
weaverryan
Read Full Comment
... has a `string` type-hint on the argument (and maybe you also have `declare(strict_types=1)` on your class... I can't remember if that's needed). The point is: this error is because if your type-hint - API Platform is ...
weaverryan
weaverryan
Read Full Comment
... api-platform does that by default... EXCEPT! Since the `admin:read` group is present, my beautiful IRI has become a nested object with just `passwordVersion` (and jsonld stuff). Note that I may have made a mistake. If so ...
Philippe B.
Philippe B.
Read Full Comment
... /screencast/api-platform-security/json-login - that will try to authenticate the user whenever the URL is /login. Basically, whenever you go to /login, you will hit this json_login "authentication mechanism" *before ...
weaverryan
weaverryan
Read Full Comment
... Hi Victor, ` /var/www/api-platform # yarn why babel-eslint yarn why v1.16.0 [1/4] Why do we have the module "babel-eslint"...? [2/4] Initialising dependency graph... [3/4] Finding dependency... [4/4] Calculating file ...
... = true; }) ``` it doesn't seem to do anything. So i'm just wondering what I'm missing, or what's the best way to config eslint & typescript parser. Thanks in adance, your videos for react and api-platform has given me a huge head start in building my first headless app!
... :). In a more perfect world, the "stations" table would have a true relation to the "markets" table through a join table. That would then all be mapped correctly on Doctrine (as a ManyToMany relationship) and API Platform ...
weaverryan
weaverryan
Read Full Comment
... with the paginator, you're dealing with a `SlidingPagination` instance (https://symfonycasts.com/screencast/api-platform) which extends `AbstractPagination` https://github.com/KnpLabs/knp-components/blob/master/src/Knp ...
weaverryan
weaverryan
Read Full Comment
... is how Doctrine works: the security system will initially query for the currently-authenticated user. Later, when API Platform queries for that same User, Doctrine returns the *same* object (instead of making a 2nd query ...
weaverryan
weaverryan
Read Full Comment
... //localhost:8010 (from http://localhost:8020) due to CORS. If that's the case, you'll just need to modify your backend Symfony app to set some CORS headers to allow this. Actually, API Platform comes with NelmioCorsBundle pre-installed, which allows you to add this config: https://github.com/nelmio/NelmioCorsBundle Cheers!
weaverryan
weaverryan
Read Full Comment
Query Extension Auto-Filter a Collection

... best solution. Really, we need to not return unpublished treasures at all. Find the API Platform Upgrade Guide... and search for the word "state" to find a section that talks about "providers" and "processors". We talked ...

6:15
Security Voter

... this and paste it down for securityPostDenormalize: So here's the deal: anytime that is_granted() is called - from anywhere, not just from API Platform - Symfony loops through a list of "voter" classes and tries to ...

6:13
Custom Item Data Provider

... >setIsMe($this->security->getUser() === $data): Try the test now: We got it! What we just did is a really natural way to use entities in API Platform... but also have the flexibility to add custom fields that require a ...

6:57
Serializing Messages as JSON

... this object's one property into JSON. We're not going to go too deep into Symfony's serializer component, but if you want to know more, we go much deeper in our API Platform Tutorial. Anyways, this simple JSON structure is ...

6:41
... allowed to make requests to YourJavaScriptBackend.com"). This is determined via CORS headers (see NelmioCorsBundle, which comes pre-installed with API Platform). Your API backend will need to allow your JavaScript frontend to ...
weaverryan
weaverryan
Read Full Comment
... platform events for example? Speaking of api platform, I could also set these properties in a data persister. I hope you get my point. I don't see how one would be better than the other and I often struggle with these kinds ...
Tobias I.
Tobias I.
Read Full Comment
... the `ConstraintViolationList` into JSON. API Platform is a great platform that has a lot of this built-in. But ultimately, this is what it's doing behind the scenes :). > Yup, I am primarily talking from a standpoint ...
weaverryan
weaverryan
Read Full Comment
Hey victor ! Cool question :). We've just started releasing our security tutorial - https://symfonycasts.com/screencast/api-platform-security - and this is *exactly* the kind of stuff I hope to clear up there. But ...
weaverryan
weaverryan
Read Full Comment