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

Is there a known bug for bernard.receiver when used with symfony 4?

I tried using bernard-bundle in my Symfony 4.3 project to run a basic helloWorld background task, but when I try to run bernard: consume I get an errorIn SimpleRouter.php line 38: Given "my_receiver"...

View Article


Symfony4 MongoDB inject repository

I try to injcect doctrine mongo repository to controller. In services.yaml file I added entry: App\Account\Repository\MongoAccountRepository: factory: ["@doctrine_mongodb", getRepository] arguments: -...

View Article


Using pre-set data and changing the value

I am trying to recover datas and modify them according to a selector. This is how my application works: I have vendors associated with articles, several vendors can have the same product except that...

View Article

How to access not-injected services directly on Symfony 4+?

I'm trying to update Symfony 2.8 to Symfony 4 and I am having serious problems with the Services Injection.I'm looking the new way to use Services inside Controllers, with auto-wiring:use...

View Article

Symfony monolog fingers crossed handler not excluding specified http codes

I am using the fingers crossed handler to buffer log messages until an error occurs. Below is my config:monolog: handlers: buffer: action_level: error excluded_http_codes: [401, 403, 404] handler:...

View Article


Recommended approach Symfony 4 - custom fields

I am trying to fully migrate to Symfony 4, leaving Wordpress behind as much as I'll can.Right now I can manage the pages, posts and best of all, application logic, given the power of Symfony framework....

View Article

How to configure a Symfony workflow

I work on Symfony 4.2 version I made an Workflow Service, who has three places draft, reviewed and publishedI add to conf/products/framework.yaml this lines of code. But i don't understand what is...

View Article

Image upload with sonata admin

I think the issue is pretty simple to solve but I can't find any clear answer right now. I hope you might have an idea.I'm trying to upload an image with sonata admin.In my entity I have this field/**...

View Article


I have an error when using API platform SWAGGER on Symfony4 project

I made this for GET statement in the controller<?php namespace App\Controller\Api; use App\Entity\Article; use App\Factory\EntityFactory; use App\Repository\ArticleRepository; use...

View Article


How to redirect to different route than dashboard in Sonata Admin

How can I make my homepage not redirect to the dashboard of Sonata Admin Bundle?I tried adding a route in my routes.yaml. It shows up in debug:route, but there's another entry for /...

View Article

How to recover all elements of an ArrayCollection?

I would like to retrieve the id of the ArrayCollection to upload multiple photos at the same time. The upload of the image having for id 0, works (normal) but when I want to upload several images I...

View Article

Multiple File Upload in one api call using api-platform

I want to upload multiple images at once in single api call through api-platform endpoint. I have imageTest as my entity, UploadImageAction as my controller and ImageType as my form.Please let me know...

View Article

How can I know the real path for my monolog logs to read them from a...

I use monolog in my application to get logs on the actions of my users.useractions: type: rotating_file path: "%kernel.logs_dir%/useractions.log" level: info channels: [useractions] max_files: 60 So I...

View Article


Security error message key translations possibilities (to dutch)

I've been looking for all the error message key translations so can translate them all to dutch. The docu explains the following'Invalid credentials.': 'The password you entered was invalid!'So how to...

View Article

Symfony 4, how get the root path directory (or /src path) properly from a...

In Symfony 4, from a controller I can get the root path of my project via : // From a Controller Class, in the src/Controller dir use Symfony\Bundle\FrameworkBundle\Controller\Controller; // ... Class...

View Article


Api Platform with Swift Mailer

I would know if API Platform is reliable to Swift Mailer. In fact, I woul use Swift Mailer to send a email when a new task has add. It works good when I use my controller, but not working with Postman...

View Article

php -S 127.0.0.1:8000 -t public not works

When I run this command: php -S 127.0.0.1:8000 -t public the error is can not open file 127.0.0.1:8000I'm using symfony 4, when I lunch the server with the command php bin/console server:run it works,...

View Article


How to resolve the permission errors for MySQL server?

I am trying to work on this project. https://github.com/thiagogomesverissimo/symfony_traditional_login Following the instructions. But when I was executing php bin/console doctrine:migrations:migrate...

View Article

How to use Intl component with table builider?

Hey I use ominis/datatables bundle in Symfony 4.3. I store in my db country code from Intl. How to use Intl::getRegionBundle()->getCountryName($value) when i'm using table builider. My code below...

View Article

How to setup .env in Synfony for Reverse engineering using PDO

I just started a project with Symfony 4. In this project, I do not want to create my Entity but recover existing database on an AS / 400. According to the doc Symfony, I have to reverse engineer but I...

View Article
Browsing all 3925 articles
Browse latest View live