Symfony 4 deploying in azure error : The page isn’t redirecting properly
First I'm using "Azure for students" and this is my website : immonova.azurewebsites.netOk so the problem is I get from the browser "The page isn’t redirecting properly" when in the home page :I try to...
View ArticleHow do I write a function for Converting IP decimal number format to IP...
Is there any function or API or method that will convert an IP decimal format to an IP address format? Like '16801024' convert to '1.0.93.0'
View ArticleSymfony4: No route found for "GET /lucky/number"
I am starting to play with symfony4. I've just created new application and create new LuckyController. It works with routes.yaml configured in this manner:lucky: path: /lucky/number controller:...
View ArticleHow to hide or delete the defaults available console commands?
I created a new Symfony 4 project via symfony new my_project_name. Currently when I execute ./bin/console, the output shows I will create some custom console commands and I want show only my custom...
View ArticlePHPUnit, Symfony4 and namespaces
I have the following error: In TestFixturesCommand.php line 32: Attempted to load class "AbstractTest" from namespace "App\Tests\Functional ". Did you forget a "use" statement for...
View ArticleSymfony 4: How to disable profiler in test-env through command line
I am trying for quite some time now to disable the profiler in the test-environment. The only way it works is manually setting APP_ENV=test in file .env but I want to do this through the command line,...
View ArticleSelect 2 Webpack-encore
I'm trying to use select2 with webpack-encore on my symphony4 project. My app.js file is loaded without problem but not select2 while i installed it .. I do not understand why it's not working at all...
View ArticleHow to display a datepicker on Symfony?
I want to set up a date-picker for my date type fields based on symfony documentation. I have installed the package since packagist 'eternicode / bootstrap-datepicker'. I am able to apply my defined...
View ArticleSymfony 4 extremely slow on windows
I've used Symfony on Windows 10 for my projects for a few years (SF2, SF3), and I recently moved to Symfony 4 to build a new project but performances are catastrophic.Symfony initialization time takes...
View ArticleSymfony 4 - ServiceCircularReferenceException
I am currently porting our Symfony application to Symfony 4.3. I understand from the documentation that instead of doing $this->container->get ( 'service_a' ) the new best practice is to use...
View ArticleHow to fix problem with authentication? Authenticator has no access to...
I create a project in php with symfony. I made registration form and it works but, I was trying to make login form, when I found out a problem.Could not determine access type for property "username" in...
View ArticleSymfony 4.x route annotations not working on homestead
On Windows, when I install a clean symfony project withcomposer create-project symfony/skeleton my-project and set a Route like/** * @Route("/login", name="login") */ and then start the symfony dev...
View Articleapi-platform/symfony security voter subject null when Entity implements...
When I implement an interface or extend a class, the subject in the voter class is null. This is not expected behaviour, after removing the interface works all fine. am I doing something wrong or this...
View ArticleSymfony 4 - correct Semantic UI integration
I want to integrate Semantic UI in my Symfony 4.3 project. I installed with npm:npm install semantic-ui --saveBut is it correct to build the Semantic folder in the root of the Symfony project?...
View ArticleDoctrine won't connect to MAMP mysql database
I have started learninng Symfony for a school project, and I was following a tutorial from Symfony's website, but for some reason Doctrine dosn't manage to connect to mysql database I have running on...
View ArticleSymfony: Update entity without related entity
I need to update entity (PostMeta) without related entity (Post). The + code looks like this:$post = $postRepository->findOneBy(['id' => $postId]); $postMeta = new PostMeta;...
View ArticleSemantic UI Icons not loading Symfony Webpack-Encore
I build in Symfony 4.3 my Semantic UI folder under assets/. The problem is, that it is not loading the icons (fonts). If i change the webpack encore link (css and js) to the node_modules folder, it...
View ArticleSymfony 4, get .env parameter from a controller, is it possible and how?
From symfony 4, I want create a global parameter and get the value of this parameter from a controller. This parameter is the path of an another app in the server. So, I thinked add the paramerter in...
View ArticleHow to gzip compress Symfony4 http response before sending it?
I am developing a site with Symfony 4. After a test with GTmetrix, it appears that the files sent by the site are not compressed.At the beginning I thought it should be a process made by the web server...
View ArticleForm with query builder
I'm trying to achieve a specific form with the query builder, but I get an error when I add the ->select->distinct to my query builder.Here is the error:Warning: spl_object_hash() expects...
View Article