How do I disable encoding of special characters in URLS when redirect to HTTPS?
I installed a call tracking and ad management system on the site, but it doesn't work, because after a redirect from HTTP ->HTTPS, some of the special characters in the URL are encoded.Source...
View ArticleoverWrite security.yml fir disable oauth0 generate error "You are not allowed...
I use symfony 4.3. I want to disable oauth0 authentification for behat test environnement and change security.yml but i have error `You are not allowed to define new elements for path...
View ArticleJMS\Serializer\Annotation\Type does not exist or not found
I am working on writing tests for some existing code. The code works, but if I write a unit test that hits the same code, I get this error:Doctrine\Common\Annotations\AnnotationException : [Semantical...
View ArticleSymfony 4: How to organize folder structure (namely, your business logic)
In the Symfony Best Practices is advised to not use bundles to organize business logic.The bundles should be used only when the code in them is meant to be reused as-is in other applications:But a...
View ArticleSymfony 4.4 https everywhere
I want my Symfony 4.4 site to force https site wide. I know this should be simple and I've been googling for a while but I don't seem to be able to find the correct solution. I have paths defined in my...
View ArticleUsing an environment variable (from `.env` file) in custom Twig function in...
How can I use an environment variable from the .env file in a custom Twig function (\Twig_SimpleFunction) in Symfony 4?
View ArticleHow to override the "public" directory?
I've renamed my public directory into www so as the documentation says I've added some line in composer.json file:"extra": { "...": "...", "public-dir": "www" } Then I ran composer update.But it seems...
View Articledoctrine querybuilder syntax error expected =, =, !=, got end of string
Having following error:"[Syntax Error] line 0, col -1: Error: Expected =, <, <=, <>, >, >=, !=, got end of string."building this query with doctrine querybuiler :SELECT * FROM area...
View ArticleRendering 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 ArticleDeployment Symfony 4 with React js application on Heroku
My application is Symfony 4 with React js, then I want to deploy on Heroku. I have one repository for both and there are two folders backend and front-react in this repository. Then I started to deploy...
View ArticleWhy adding custom collection operation removes post method?
If I use only the @ApiResource() annotation result is as follows:When I try to add a custom operation, the post collection operation is missing: * @ApiResource( * collectionOperations={"get",...
View ArticleJwt Token decode - Symfony 4
I am trying to solve a problem related with token request. It is my newArticle function (to add new article) in the controller:public function newArticle(Request $request, EntityManagerInterface...
View ArticleSymfony Messenger and RabbitMQ
I am using the Symfony Messenger on Symfony 4.4 with RabbitMQ.Everything seems to work fine. I have own Serializer, own Handler. I can consume messages etc... The problem is that after consuming...
View ArticleTranslation 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 ArticleDoes number of processes affect sequential execution for Messenger?
We have a simple use case: we need to consume messages in the queue sequentially (message #1 finishes execution before message #2 starts execution).Suggested supervisor configuration in Symfony docs...
View ArticleMessage handler shows as registered on debug:messenger, but handler not found...
When I execute bin/console debug:messenger I get:Messenger ========= async.command.bus ----------------- The following messages can be dispatched:...
View ArticleSymfony 4 : good practice controller render
I just begun to use Symfony, and I came from CodeIgniter. In this framwork you pass parameters to the view with an array called $data. So if you want to pass the same variables in each views of a...
View ArticleSymfony add logic to logout route
In a Symfony 5.0 Application I want to add custom logic for cleanup reasons when the user loggs out. What I have currenty is what is described in the...
View ArticleVanilla JavaScript not working in Symfony4
I installed webpack encore on a Symfony 4 project but my vanilla javascript is not working. I can use jQuery.Here is part of the code structure:webpack.config.jsvar Encore =...
View Articlewhere to store global veriables in Symfony 5? [closed]
where to store global variables in Symfony5? I want to store application specific parameters like. site name, admin email etc. I would like to know the best practice to store these. How to access these...
View Article