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

Symfony 5 : translate Arabic numbers to Modern numbers

I use Symfony 5, and I checked Arabic like the default language of the website.but when I write a number on the database and get it, the Symfony translate it automatically to Arabic numbers ( from...

View Article


Image may be NSFW.
Clik here to view.

I can't creat a Mysql database using Symfony

I'm missing a driver called pdo_mysql, I don't know how to install it

View Article


How to start local server with symfony 5 or downgrade version to 4.4?

I started a new project in new Symfony 5 and i can't open my local server.On Symfony 4.4 the command PHP bin/console server:run is OK,But with Symfony 5 the command appears not to be...

View Article

Rendering problem with the NelmioApiDocBundle

I have a problem with the bundle "NelmioApiDocBundle".my rendering https://localhost:8000/api/docThe rendering is raw when it should be much more design.***routes.yaml*** api_login_check: path:...

View Article

How to use AutoWiring when looping through Subclasses?

I have a Sumfony 4.3 command that processes some data and loops through a number of "processors" to do the processing. The code uses a factory (autowired) which then instantiates the command.use...

View Article


MappingException: "Extension DOM is required."

I have an application, my dev environment is nginx and it works great. Production is apache, PHP7.3, mysql 5.7I am getting the following error:Uncaught PHP Exception...

View Article

API Platform error with not nullable field

I have a simple entity /** * @var string|null * * @ORM\Column(name="city", type="string", length=255, nullable=false) * @Assert\NotNull() */ private $city; ... /** * @param string|null $city * @return...

View Article

Sylius: How to reference your own twig template in a grid?

This is not a duplicate of e.g. Referencing a template in Twig / Symfony2 because creating bundles as applications is deprecated/not recommended anymore and therefore the answer is not applicable...

View Article


Can we dispatch an event from Rabbitmq Consumer in Symfony 4.3?

Trying to dispatch a custom event from the Rabbitmq Consumer. The consumer works fine, and there are no errors in the dev.log. This process used to work on Symfony 3.4, recently upgraded the project to...

View Article


How I can get the current user into my entity classes?

I am developing my first symfony 4 application and I migrating from symfony 2+ and symfony 3+, I know a lot has changed and I'm feeling a little lost.Right now I am developing a backend and all of my...

View Article

Symfony 4, conditional route redirect/override in PROD mode

The route of FosUserBundle '/login' must not be accessible in Production mode. It must redirect to the route '/choiceConnexion'.I thought I had this working because in dev mode there is a redirect...

View Article

Translation of flash messages with parameters in Symfony 4

I have a problem with flash messages in Symfony 4 and translation. Translation of simple flash messages is working fine:$this->addFlash('success', 'flashmessage.project_deleted'); But now I want to...

View Article

How to add prefix to some controllers using annotations?

I have at the moment two controllers. GitlabAuthControllerUserControllerI need to add the path prefix api to UserController only.Before I was trying following at annotations.yaml file:controllers:...

View Article


Image may be NSFW.
Clik here to view.

An exception occurred in driver: could not find driver symfony 4 database...

I am trying to validate this order: php bin / console doctrine: database: create symfony 4 in console but I have this error 'An exception occurred in driver: could not find driver' however I activated...

View Article

Symfony 4 get repository in template batch action

I use Symfony 4 and sonata admin. I created a custom batch action in the member list. I would like to have access to the other repositories in the batch action template. I would like to be able to...

View Article


Symfony 4 - assert validation empty field

I am trying to pass validation with a the param that can be empty, null, or numeric.When I try to pass empty filed it returns an error : Please check your requestand when I leave just @Assert\Type it...

View Article

How to completely disable caching in Symfony 4 in "PROD" environment

How would I completely disable caching in symfony 4 in "prod" environment set via ".env". I know that caching is disabled in "dev" mode but would like same to happen in "prod" mode.Ive looked at the...

View Article


Image may be NSFW.
Clik here to view.

Symfony 4 is painfully slow in DEV

I try to run a simple Symfony 4 project on a docker container. I have tested regular PHP scripts, and they work very well. But, with Symfony project, the execution gets ridiculously slow. For example,...

View Article

Symfony 4 "Easy admin" upload directory does not change when "upload_dir"...

I have some troubles on the bundle easy_admin in Symfony 4.3I do not find where the upload directory is defined by the bundle. He still uses the default configuration even if I define my upload_dir...

View Article

Symfony web_profiler authentication

Is there any way to restrict access to symfony web_profiler information in dev mode? Enable authentication or something similar?

View Article
Browsing all 3924 articles
Browse latest View live


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