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

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 Article


Symfony 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 Article


Allow 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 Article

Symfony 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 Article

Remove '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 Article


Building 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 Article

How 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 Article

How 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 Article


Symfony 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 Article


Where 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 Article

Symfony 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 Article

404 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 Article

nelmio-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 Article


Symfony, 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 Article

Secure 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 Article


No 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 Article

SF4 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 Article


Class "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 Article

Symfony / 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 Article

Image may be NSFW.
Clik here to view.

SF4 + 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
Browsing all 3924 articles
Browse latest View live


Latest Images

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