Questions tagged [symfony4]

Symfony is a PHP framework developed by SensioLabs. Symfony 4 was released November 2017.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
36 views

Find qualifications that are expiring [closed]

I have the following function that returns StaffQualifications where either the qualification is expiring or the qualification type is expiring, but this section doesn't seem to sit well with me as it ...
Jonathan Clark's user avatar
4 votes
1 answer
621 views

How to refactor Symfony 5 controller to comply with SOLID design principles

I am trying to create this API endpoint that will accept JSON payload and will calculate quote based on provided factors and their ratings. I have Entities that contain information about: ...
anonymous007's user avatar
1 vote
1 answer
75 views

Symfony rest endpoint for get a number products of one user

I want to improve quality of this symfony rest endpoint (solid principle, Kiss, best practice...) Can you review my code please? Symfony controllController function that return json list of product <...
jikaill's user avatar
  • 13
3 votes
2 answers
105 views

Using PHP goto Labels for code folding

I've been using PHP labels in my Controllers for code folding. PHP labels are actually used with goto statements. But I'm using labels only because it's so much ...
Mukarram Khalid's user avatar
5 votes
1 answer
283 views

Symfony 4 translate Entity fields

I have been developing multilanguage website based on Symfony4. Structure of one of the tables: Field Type Null Key Default Extra id int(11) NO PRI NULL auto_increment title_en varchar(255) NO ...
Yrtymd's user avatar
  • 161