how to open the generated pdf in new tab on symfony 4
on my Symfony 4 app, i have a botton that used to generate pdf from html using knp snappy bundle but the generated pdf get displayed in the same page , so i'm looking for a way to open the generated...
View Articlesymfony server:start command throwing an error
I try to runsymfony server:start It returns an error messageThe local web server is already running for this project at port 8000 But lsof -wni tcp:8000 isn't returning anything, I'm sure there isn't...
View ArticleSymfony 4, Doctrine, rich entities and dependency injection
I'm starting an app using symfony 4 and I'd like to use a rich entity approach.Rich entity means i'll have to do some stuff in the entities and need some external services. Is there a way to inject...
View ArticleSymfony 5.0.3 Command "server:run" is not defined. ERROR [closed]
I did not understand the reason for this error. Also I update this too "composer require symfony 4.4 bundle" but still I couldn't find a solution to my problem.
View ArticleThere is no user provider for user, symfony 3.4.37 and 4.4.3
Since the upgrade to Symfony 3.4.37, I'm having this issueThere is no user provider for user "Mybundle\Myuser".With version 3.4.36 and previous, it was working fine.security.ymlsecurity: providers:...
View ArticleMore than one application per project repository with Symfony 4
I have three old applications (running on Symfony 2) where each one has been developed in separated git repositories and configured in their respective vhosts:company.com Company...
View ArticleAuthentication problem $user must be an instanceof UserInterface
I'm using Symfony 4.4 and have a weird problem with user authentication. Unfortunately, I myself cannot reproduce the problem, but I can see in the logs that it occurs with a small number of my users....
View ArticleRedirect to "/" route in symfony
I'm trying to redirect to the "/" route (same page) after a form submission:/** * @Route("/") */ My approach:return $this->redirectToRoute('/'); Gives me the following error:Unable to generate a URL...
View ArticleSymfony4 'ERROR : Variable does not exist', when i call a variable in my...
I'm blocked on error with Symfony 4.3.I have installed the bundle : CMENGoogleChartsBundleInstallation is ok, no errors.So i wanted try it, i have create a new controller "TestChartController" and a...
View ArticleCould not determine access type
I need to create a master entity named Users and another one named Specialties. A user can have many specialties.There is my users entity:<?php namespace App\Entity; use...
View ArticleMultiple entry points not working in Symfony 4.4
I have 2 user types on a website: Users and Vendors. Each of those types will use own login form. Therefore I've decided to create 2 separate firewalls in security.yaml:security: encoders:...
View ArticleRedirecting users after login through remember_me to different routes...
I am trying to redirect my users to different routes depending on their ROLES when they login. It works fine within my LoginFormAuthenticator (onAuthenticationSuccess function), but not once the used...
View ArticleHow 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 Articlesymfony 4.4 : datetime must be a string?
I migrated a project from symfony 3.4 to symfony 4.4 (back side with api platform)In an entity I have a date field, which is automatically generated on today's date, So when I make a POST or a PUT, she...
View ArticleHow to prefill form values with Symfony 4 form listeners?
I would like to prefill form values from a form event listener. I tried this, but nothing happens:public function buildForm(FormBuilderInterface $builder, array $options) { /* ...*/...
View ArticleSylius BitBag Elasticsearch how to implement Site-wide search on start page
i want to implement in my Sylius project the BitBag Elasticsearch - but Site-Wide.BBES Site-Wide-SearchBut i don't know how to get the form in my homepage controller. Is there any help for me?My...
View ArticleBest way to parallelize fetch data
I have a symfony4 application with a rest APIFor some Get calls I need to fetch data from differents sources (external WS and database) and return a response. What's the best way to fetch these data in...
View ArticleSymfony 4 - Doctrine Mapping exception only in Prod environnement
Deploying on a new Symfony 4 project with several entity managers, the following exception occurs ONLY on prod environment. In dev everything is ok.Uncaught PHP Exception...
View ArticleAdding custom doctrine/dbal on symfony 4.3 with symfony/orm-pack ever require
I've make a fork of doctrine/dbal to add firebird database support. I've modify my composer.json by adding :"repositories": [ { "type": "vcs", "url": "git@github.com:/julienheroux/dbal.git" } ] And...
View ArticleHow to parallelize php symfony request tasks
I have a symfony4 application with a rest API.For one request incoming to my app, I need to fetch data from differents sources (external WS and database) and return a response. because these tasks can...
View Article