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

symfony 4 - flysystem autowire

could you help me with this please?Cannot autowire service "App\Estimate\DocumentManager": argument "$flysystem" of method "__construct()" references class "League\Flysystem\Filesystem" but no such...

View Article


Api platform Errors Handling Exception?

When I want to get item with URL http://127.0.0.1:8000/actualites/1 it throw exception "hydra:description": "Not Found". I tried to custom this exception with Errors Handling - API Platform:...

View Article


Symfony MessageHandler count how many times a message has been dispatched

I'm using Symfony Messenger and I want to keep dispatching a message in the handler until it has been dispatched a number of times.How can I keep track of that? This is the code of my handler class so...

View Article

Skip \Traversable Check in Symfony Serializer

I have a Class that implements \Iterator, so I can use it in a foreach loop.But during serialization, I want Symfony to serialize it as it is (without some Properties, that I ignore with...

View Article

Symfony Check if at least one of two fields isn't empty on form validation

I've been turning this around in my head for quite a while now and still wasn't able to find a solution to my problem. Using Symfony 4 forms and constraints I'm unable to setup a check to say that at...

View Article


Symfony Check if at least one of two fields isn't empty on form validation of...

In a previous question (Symfony Check if at least one of two fields isn't empty on form validation) I had asked help for form validation using Callback. The answer given by @hous was right, but it...

View Article

No route found for "GET /security"

I've been trying to add a form on my blog app. I had one controller for the moment and everything were just fine (display my home page, display all articles, display one specific article with it's...

View Article

get FormData call ajax to symfony 4

My code js is: fetch(img).then(response => response.blob()) //img is canvas with method toBlob('image/png') .then(blob => { console.log(blob) const fd = new FormData(); fd.append("fileName",...

View Article


How to set event name and delay time in Envelope?

I'm using symfony 4 + enqueue (https://github.com/sroze/messenger-enqueue-transport+https://packagist.org/packages/enqueue/pheanstalk) to run async jobs in beanstalk.Right now I have:/** * @var...

View Article


Symfony access handling for specific folders dependend on logged in user

In a symfony 5.0 application I need to integrate a filemanager that provides basic file handling for users.Each user is only allowed to manage files in his specific user folder which (obviously) is not...

View Article

Upgrading symfony version from 3.1 to 4.4 [closed]

Is there a simple way to upgrade symfony version from 3.1 to 4.4I have a symfony project 3.1 version, and I want to migrate to 4.4.

View Article

How to configured multiple user entity with JWT token?

I have multiple user entities (multiple tables):App\Entity\CustomerApp\Entity\DealerHow to configured multiple user entity with JWT token?encoders: App\Entity\Dealer: algorithm: bcrypt...

View Article

Doctrine won't connect to MAMP mysql database

EDIT: I have since resolved my issue thanks to this answer https://stackoverflow.com/a/50908912/12296041I have started learning Symfony for a school project, and I was following a tutorial from...

View Article


createQueryBuilder doesn't work correctly

I'm working on a personnel project (a e-commerce website) and I'm using ReactJS & Symfony. My issue is the following: I created a querybuilder in my file: ChaussureRepository.php to search every...

View Article

Image may be NSFW.
Clik here to view.

The database schema is not in sync with the current mapping file (but it is !)

I just fixed some things in my code. I'm now trying to validate my schema php bin/console doctrine:schema:validateDoctrine tells me my mapping is correct but my database schema is not. So I'm doing a...

View Article


Injection of data in twig

This is the first time I come to ask for help. But here I dry and I can not find the answer to my problem anywhere.I have just started working on the creation of a website under symfony 4. I am not yet...

View Article

Symfony 4 - Checkbox not in request, when not clicked (added via js ad...

I'm trying to use checkboxes as a Collection.Actually, I'm using a checkbox Collection and a ChoiceField Collection together in one row.The row symbolizes Childs. The Choice Field is used for the age...

View Article


Expected argument of type array, entity given

I use Symfony 4 and the bundle easy admin to create a form with multiple collection, here is my code :Produit.yamleasy_admin: entities: Produit: class: App\Entity\Produit templates: new:...

View Article

Image may be NSFW.
Clik here to view.

Nelmio API doc area and bearer token with symfony 4

I have API in Symfony 4. I added NelmioApiDocBundle to my project, but i have problem with my docs. This is my configuration:packages\nelmio_api_doc.yamlnelmio_api_doc: documentation: # schemes: [http,...

View Article

How to properly remove an item in a ManyToOne uni-directional relation with...

Question:How to properly remove an item in a ManyToOne relation Context:Php 7.3 / Symfony 4 / Doctrine 2.7 / Api-platform 2.5Description:I have the following entities:The Image class definitionuse...

View Article
Browsing all 3917 articles
Browse latest View live


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