Symfony 4 in subdirectory
I'm a French developer and I did install Symfony 4 on a subdirectory of my wamp localhost. My project is named "cardMaker".I've a .htaccess file to redirect towards the public directory (index.php)...
View ArticleSymfony 4.3 Route Collision in API
* @Route("/vehicle/{id}", methods={"GET"}) * @Route("/vehicle/categories/", methods={"GET"}) When I try to reach my API vehicleCategories without passing any parameters, symfony takes the first vehicle...
View ArticleAllow only one Login with user credential in Symfony 4
Using Symfony 4, I try to grant access only if there is no user already connected with the same credentials.I'm using the authenticator guards, but no clue how to check if there is an active session...
View ArticleSymfony 4 + Sonata Admin - No metadata found for property in inherited property
I've got an error for some time now when I try to add filters to an Admin. There are two entities: Client and Order.In the OrderAdmin file, the following filters work:$datagridMapper ->add('id')...
View ArticleRemove 'public' from URL in symfony 4
I want to start application by typing http://localhost/my_project/. By default in Symfony 4 it's http://localhost/my_project/publicI tried to do this with .htaccesRewriteEngine on RewriteRule ^(.*)$...
View ArticleBuilding forms dynamically in React using Symfony Forms
My application uses Symfony for backend and React for front end. Is there a way dynamically build form in React by converting Symfony form into react forms? Rendering Symfony form in React app?
View ArticleHow to make Mandrill (by symfony4) show the email address in the 'cc' line?
I use mandril in symfony 4 to send email.I added email addresses to get the email in cc:$params->set('cc', $arrayCc);The email was sent them, but the cc emails not showing in cc line. I what to see...
View ArticleHow to use the logger in a console command on Symfony 4?
I've recently gone from using Symfony 2.7 to 4.2.Previously in my commands in order to log to a file I used something like:$logger = $this->getContainer()->get('logger'); $logger->error('put...
View ArticleSymfony 4 - encrypt/decrypt fields used in doctrine with a Service?
So I have fields in my database in an entity class Person { // other fields /** * @var string * * @ORM\Column(name="last_name", type="string", length=50, nullable=false) */ private $lastName; /** *...
View ArticleWhere to initialize Doctrine's default transaction isolation level in Symfony?
I'd like to set a default transaction isolation level of READ COMMITTED, instead of MySQL's default REPEATABLE READ, throughout my Symfony application.Basically, I need to ensure that the following...
View ArticleSymfony 4.2 lexik / LexikJWTAuthenticationBundle Request api User with token...
In the documention of LexikJWTAuthenticationBundleI want to make a request POST on User Entity with a token when I send the username and passwordit returns a 401 error{ "code": 401, "message": "JWT...
View Article404 after deployment of a Symfony project
I have just deployed my application on the server.On localhost I can use the URL http://localhost:80/autofill/has-data and I get an output. On the live server, I use the URL...
View Articlenelmio-api-doc/swagger-ui how overwrite displayRequestDuration
The Problem is easy to describe, i want to show the request duration on the swagger-ui from the nelmio\api-doc-bundle.In the documentation from https://api-platform.com/ i cant find something about...
View ArticleSymfony, update 3.4 => 4.4. Monolog error
I am trying to update a simple web application from Symfony 3.4 to Symfony 4.4.Eventually I get the following error>php bin/console debug:config In ScalarNode.php line 36: Invalid type for path...
View ArticleSecure object while writing in file
I am using Symfony framework. In the application, I am creating an object of the class, serialise it with php serialise, writing the string into JSON file and downloading that file. Then in another...
View ArticleNo files created when i make a new project
Although my shell tells me that the project is done and ready, I can't find any written files on it ! I have this problem since I updated symfony to the version 4.12.4my php version is 7.3.5Has anyone...
View ArticleSF4 session : losing the contents of an array
In a Controller, I try to pass an array from function to function. So I use session : $toutesequipes = array('listEquipes' => $listEquipes, 'lesEleves'=> $lesEleves, 'prof1'=>$prof1,...
View ArticleClass "Symfony\Bundle\FrameworkBundle\Controller\Controller" not found while...
Hi I'm fresher for symfony . when i execute the below code it will show error.i installed all the assets of symfony.help me to clear this..!<?php namespace App\Controller; use...
View ArticleSymfony / API-Platform Exclude meta fields
Using Symfony 4, Doctrine and API Platform, I have set up a simple API for retrieving jobs and the service and sub-service associated with each job. Jobs, Services and Sub-Services are their own...
View ArticleSF4 + docker : Proxymanager error : syntax error, unexpected '?', expecting...
I'm encountering a strange error on my branch. I'm using docker and symfony 4.Yesterday, i had this error first (that appeared from nowhere) : Then, this second error below appears, after me and my...
View Article