Category "symfony"

Named Routes in Symfony 6 with controllers in inner directory

I moved all my controllers to /src/Web/Controller in my Symfony 6 project like follows ├── src │ ├── ... │ &

symfony 5 form type define the labels

I created the CRUD for my entity and I need to somehow define the labels for the fields of the entity. I can define them in the form type, for example: $builder

Pass Associative Array from Symfony Controller to Twig and JavaScript

So, I have 2 arrays that I've combined into one array after making sure they're the same length as such. //Fetching Ratings for All Coaches & Making a Key,

TYPO3 Symfony Services.yaml class not find

I am trying to update an older extension to Typo3 V11. Currently I am got the following error: Here ma Services.yaml file: # Configuration/Services.yaml servic

Symfony is slow on production server, not in local

I have a performance problem with my symfony stack. Because an image is worth than a long text : On production (AWS EC2 t2.medium) (2387ms, 84MiB)(ParamConverte

memory_limit problem while running composer install on Symfony gitlab CI

I'm trying to add Gitlab CI for a Symfony project and on the build stage I have a script that installs required extensions and libraries, at the end, runs compo

Knp Pagination in symfony 5

I installed "Knp Paginator" and everything works fine but if i try to do a search in the search bar (this search bar does not depend on Knp Paginator) i have th

JWTRefreshTokenBundle change user_identity_field Symfony 5.4 + ApiPlatform

I am using : Symfony 5.4 + ApiPlatform + JWTRefreshTokenBundle 1.1 JWTRefreshTokenBundle => https://github.com/markitosgv/JWTRefreshTokenBundle I need to ch

JWTRefreshTokenBundle change user_identity_field Symfony 5.4 + ApiPlatform

I am using : Symfony 5.4 + ApiPlatform + JWTRefreshTokenBundle 1.1 JWTRefreshTokenBundle => https://github.com/markitosgv/JWTRefreshTokenBundle I need to ch

Symfony 5 - A problem with the form to registrate a credit card with MangoPay

I'm trying to register a credit card with MangoPay. I've installed the mangopay/php-sdk-v2 package. To register a credit card, it needs three steps. Create a to

No login possible via LDAP plugin with Contao

For our new intranet we want to use Contao. So that we do not want to create each employee by hand. One of the requirements is that LDAP users can log in to the

Symfony- Error ocurred when I try to make an entity

When I use: php bin/console make:entity to create a new db entity, I get the following error: In DoctrineHelper.php line 180: Class "Doctrine\Persistence\Mappin

Convert POST Request to Doctrine Entity

Coming from a NodeJS environment, this seems like a nobrainer but I somehow did not figured it out. given the function: /** * @Route("/", name="create_

API Platform: Hide properties in /api/contexts/<entity>

When working with the API platform (Symfony) I only expose some of my entity's properties to the API. That works pretty good with groups, the output DTO and Dat

Laravel 9 dynamic Email configurations

I am coming to you with a problem to which I couldn't find a solution on google after hours of googling. I want to be able to send emails by using different SMT

Symfony rest api error with security.yaml

I'm trying to add an auth system with JWT to my REST API but since I added my system and modified my security.yaml I have those errors:

Disable or hide EasyAdmin crud search bar

I have developped an online learning website with EasyAdmin as backend. Everything works fine, but I'd like to hide or disable the search bar on top of the crud

Symfony form with ChoiceType conditional

I want to create a form in symfony with a double checkbox, in mode You approve the privacy policy or you don't approve the privacy policy. []I approve the priva

Symfony 6, Problem with errors pages (Unable to generate a URL)

Strange behavior. If enter any phrase in the link, that should lead to a 404 page. Instead, an 404 error is raised: Unable to generate a URL for the named route

Symfony doctrine specify fields in ManyToOne to improve performance?

For example i have a simple entity "Cars" with a ManyToOne relation "Brands". class Brands { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\C