Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Browsing all 3924 articles
Browse latest View live
↧

Symfony 4: use localizeddate

I am trying to use localizeddate to show a date in French on my website:<td>{{ saison.start|localizeddate('medium', 'none') }}</td> I followed the various documentations and:I installed the...

View Article


how to use Social login with api-platform and angular 8

i'm developing a symfony 4 backend using api-platform and angular 8 for the frontend. i already make an authentication system with api-platform using JWT and i want to add the possibility to login and...

View Article


how could i add an entity in this class

hello, a friend tell me i coulld use handler and abstract cllass for handlle my symfony forms. I'm new in symfony and try do llike he say,some parts are ok, but it's not so easyI had this three part...

View Article

How to cache DynamoDB credentials using symfony 4

symfony: 4.4aws-php-sdk: 3.83I injected the Aws\DynamoDb\DynamoDbClient using Symfony 4 services like this:Aws\DynamoDb\DynamoDbClient: arguments: - region: '%dynamodb.region%' version: 'latest'...

View Article

delete delete action cascade symfony

Good morning all,I am looking for a solution to cascade delete data from my table.I have an Orders table: class Order { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") *...

View Article


Endpoint Server GraphQL (overblog-GraphQLBundle) Not support Method POST

For 3 Days, my project which worked perfectly locally, once put on the production server. GraphQl requests are a failure with the error "[Error: Network error: JSON Parse error: Unrecognized token...

View Article

PHPunit execute tests with wrong PDO driver in Symfony 4

I have a PHP unit working on a remote interpreter perfectly.It work in all cases without PHP Storm (I.E. using the same command in command line on the docker)Here is the command command executed by...

View Article

Symfony - Get security.token_storage in Sylius repositories

I have tried to inject security.token_storage service via CompilerPass, I do not have errors and user is currently logged, however when I access the TokenStorage, $tokenStorage->getToken() I got a...

View Article


Strange Issue With Entity Relationship in Symfony 4

This is a very odd one, i'll try to explain with couple of sample entities.class Property{ /** * @var string * @ORM\Column(type="string", length=10) */ private $postCode; /** * @var InstructionToSell *...

View Article


Solving Recursion issues with Symfony and JsonSerializable

I'm looking for some input on recursion issues in doctrine entities using Symfony. A lot of the time we are running into this problem when we use JsonSerializable.It makes total sense why this happens...

View Article

Attempted to call an undefined method named "redirect" error in Symfony 4

i have this error in my code and I have writing the "use" but i have this error:Attempted to call an undefined method named "redirect" of class "App\Controller\SetlocaleController".My code: <?php...

View Article

Symfony 4 - Good practice to remove your own user account while connected

I would like my users to be able to delete their own user account. I made a SecurityController where there is my 3 functions login, logout and deleteUser. When I delete the current user in database...

View Article

Docker or symfony missconfig. error SQLSTATE[HY000] [2002]...

How can I fix this? Is this a miss config in docker-compose or maybe is a miss config in PHP-fpm or I should do something in simfony env. I really don't know what to change. If I call doctrine from...

View Article


Symfony 4: Execute standalone service without it being specifically...

I have written a standalone service I would like to have executed at the start of every page request in the container without it being referenced by any specific controller in example. My thinking...

View Article

Knp_paginator template issue

I have a small issue on symfony 4.12 with knp_paginator bundle I want to apply a template for it I create a knp_paginator.yaml in config/packages/test because it didn't generate it knp_paginator:...

View Article


Data Transformer vs.Constraints

I stumbled upon a question regarding Symfony's DataTransformers and how to properly use them. While I know how to implement and add them to my form field, I was wondering how DataTransformers are...

View Article

isGranted returns false for logged in user JWT - Symfony API-Platform AWS-EB

I have deployed an API-Platform app using JWT token to ElasticBeanstalk which, as usual, works fine in my local server.On EB though it is denying access to logged in users despite the correct...

View Article


How to count distinct columns query? [closed]

I have to find the total number or records but count is based on distinct of multiple columns.I have following lines in my query.$query = $this->createQueryBuilder("j"); $query->select(...

View Article

Symfony 4 Route gets mismatched - redirectToRoute leads to the current page

Dear intelligent hive,I got problems with redirect in symfony 4. Of course I tried to find a similar question, but found no solution.I just started learning Symfony 4 by working through some tutorials....

View Article

Virtual hosts configuration with Symfony 4

I have a problem with my virtual host on WAMP server. I tested projected that I worked on before, and they all work. When I hit my defined localhost name of the project 127.0.0.1 project.local defined...

View Article
Browsing all 3924 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>