Hey Abdelkarim,
Yes, the new minor version of "api-platform/core" causes it to fail. If you downgrade it to "2.4.*" - it will work. So, it sounds like a BC break in 2.5.* but I'm not sure what exactly causes it though…
Hi SymfonyCasts team,
Thank you very much for the great work you do with these API Platform tutorials.
As I'm not a frontend developer, I even don't want to install the frontend part of this tutorial.
Is there a way for me (as…
Cool,
does this course cover API security with API-Platform ? :)
…client method takes kernel options as the first argument.
A question:
I see that the `\ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase` is still marked as experimental in the latest a`pi-platform/core` and the last commit was 2 years ago.
Does anyone recommend…
…show this attribute and can't show it ? Or I should have 3 routes and 3 operations ?
I'd like to undrestand this point to continue learning API platfrom and also because I have never seen how a frentend developer consume an API.
Thank you
…answer. At least to remove the camelCase fields.
https://api-platform.com/docs/core/serialization/#name-conversion-for-symfony
```
# api/config/services.yaml
services:
'Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter': ~
```
```
# api/config/packages/api_platform.yaml
api_platform:
name_converter: 'Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter'
```
…When I run `symfony composer why api-platform/graphql`
I got this error
```
In BaseDependencyCommand.php line 103:
Could not find package "api-platform/graphql" in your project
depends [-r|--recursive] [-t|--tree] [--locked] [--]
unable to run /opt/homebrew/bin/composer why api-platform/graphql
```…
…I follow all code but after I decorate the api_platform with the decorator, I paste a token on swagger and when I try a simple GET I receive '
```
Error: Internal Server Error
Response body
Downloads
{
"@context": "/api/contexts/Error",
"@id": "/api/errors/500",
"@type…
Yes, but I consider that you are all using API Platform bundled with course, which is based on version 3.1, and no one mentions upgrade to the latest version of it.
…Could you try to install API platform as it's shown in this course? The Flex recipe installs this API pack: https://github.com/api-platform/api-pack - you may want to try to install missing packages manually from that pack to see if that…
…is a tip on this in lesson 26 and see the comment https://symfonycasts.com/screencast/api-platform-security/state-processor#comment-30978
As described here https://api-platform.com/docs/core/state-processors/#hooking-into-the-built-in-state-processors
When I returned the…
…m using api 3.3.1 and symfony 7.1
```php
namespace App\State;
use ApiPlatform\Metadata\Operation;
use ApiPlatform\State\ProcessorInterface;
use App\Entity\Park;
use App\Entity\User;
use Symfony\Bundle\SecurityBundle\Security;
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
#[AsDecorator('api_platform.doctrine…
Same small issue here.
I found this comment which sounds like the solution: https://github.com/api-platform/core/issues/5343#issuecomment-1400434403
I am not going to try this fix right now since this is just tutorial code so I am not sure if…
Hi, someone else know why normalizationContext & denormalizationContext don't work with Symfony 7 et API Plateform 3.2 ?
When i add this :
```
#[ApiResource(
shortName: 'Pokemon',
description: 'The Pokemon List',
operations: [
new Get(uriTemplate: '/pokemon/{id}'),
new GetCollection(uriTemplate: '/pokemon'),
new Post(uriTemplate: '/pokemon/{id}'),
new…
for filtering **GetCollection** so that only owner can see it you can check following documentation https://api-platform.com/docs/core/extensions/#example
Yes, I never get the correct IRI.
When using api-platform version 3.1, I got: "../словник" instead of the IRI,
when using api-platform version 3.2.2, I got: "path/실례.html".
I've tried other versions and had same bug in every…
I have an Endpoint with takes a UUID property and an array of UUIDs via POST.
In API Platform 2.6, I had a class tagged as ApiResource with has a path and an Output-Class defined (another ApiResource, which is also a Doctrine-Entity…
…string",
"ApiPlatform\\Metadata\\Post"
],
[
"array",
[
[
"string",
"App\\Entity"
]
]
]
]
},
{
"namespace": "Doctrine\\Persistence\\Mapping\\Driver",
"short_class": "MappingDriverChain",
"class": "Doctrine\\Persistence\\Mapping\\Driver\\MappingDriverChain",
"type": "->",
"function": "loadMetadataForClass",
"file": "C:\\CODES\\FORMATION\\TutoModuleComment\\vendor\\doctrine\\doctrine-bundle\\Mapping\\MappingDriver.php",
"line": 42,
"args": [
[
"string",
"ApiPlatform\\Metadata\\Post…
Hi! I have an issue by using a custom normalizer (but not with API Platform). As mentioned in the Symfony documentation, it's possible to create a custom normalizer and inject services in its constructor :
```
class MyCustomNormalizer implements NormalizerInterface
{
public function __construct(
private UrlGeneratorInterface $router…
Hi team, my question is: if I use Symfony with Api Platform and Easy Admin, where I have to write "unified" logic to hash the password for both applications?
I think that in that case a listener/subscriber is better, right?
x
1000+