Questions tagged [symfony]
For questions about Symfony, a free PHP web application framework.
32 questions
1
vote
1
answer
141
views
Clean architecture in webapp : how to compose a page which needs to call many use cases?
I'm writing a pretty common Symfony web application, in which HTML is server side rendered (it's not an SPA application).
To illustrate my question, let's take a pretty common fictional eshop ...
-1
votes
1
answer
483
views
Multiple application sharing same database functionalities
We have two application A and B that I'm refactoring. They both use the same database. Those application are written using the Symfony framework and Doctrine as database layer.
I've moved some of the ...
0
votes
2
answers
273
views
How to effectively manage a large number of exceptions (I18N problematic) [duplicate]
I'm trying to found the best way to manage Exception for all over my application.
Actually, I've come with two solutions :
Solution 1
One Exception to govern them all.
namespace App\Utils\Exception;
...
3
votes
1
answer
280
views
Multi-client application (Symfony 4 Rest API) : how to manage customization?
I am working on a Symfony 4 rest API application which will be use by multiple client(about 20 different clients). Each client has his specific needs so I have to fork the web application for each ...
-1
votes
1
answer
175
views
How to prevent website from hanging on because external web service is unavailable?
A Drupal website is using external Rest API service.
The problem is that in a rare occasion when the Rest API service loses database or crashes for whatever reason, that causes the Drupal website to ...
1
vote
1
answer
3k
views
What is the way to make an internal API
I have a Symfony project.
I want to make this project API based, but also with a Web UI.
So, I have 2 Bundles, ApplicationBundle and WebUiBundle.
In Application Bundle, I have application, domain ...
7
votes
5
answers
1k
views
php CMS from scratch vs open source
Problem: We have to develop a CMS for our sites. The sites are kind of different, but they have common parts. We need to use our external user system and permissions, the menus are different for each ...
11
votes
3
answers
20k
views
How to consume external RESTful API with Symfony?
We are building a Microservice architecture for our projects, with mostly front-end Symfony applications interacting with back-end RESTful APIs.
The problem is this approach is breaking the Symfony ...
4
votes
0
answers
605
views
Symfony2 - Best aproach for a plugin system
Symfony2 is handling all its things in bundles in /app or in /vendor. This is fine if you are handling and managing all by yourself or Ops that handle all needed things.
But I haven't found a good ...
1
vote
1
answer
2k
views
Symfony 2 Multi tenancy architecture, data loaded form front controller/kernel based on subdomain
Hello fellow programmers,
(a bit of background)I'm building a Symfony 2 application for university Student accommodation, when our clients from the university side register with their details a ...
1
vote
1
answer
143
views
Possible to refactor these methods that contain the same logical flow?
I have many methods in many repositories that have the same logical flow:
Retrieve value from Cache
Check value
If no value, fetch from Database
Update Cache
Return value
Is there a way to refactor ...
0
votes
1
answer
396
views
Multiple intranet/internet systems partially working on same data - database strategy
We are starting rewritting our apps (Internet portal, millions of unique users and few CRM/ERP systems, few hundred users) and we have a huge decision to make now. We are going to write them mostly (...
1
vote
1
answer
1k
views
PHP OOP - Getters / setters vs. database storing
Problem
I am trying to optimize the architecture of my web-application developed in PHP using the Symfony framework.
I have an object "pool" that contains "swimmers". I need to display the number of ...
0
votes
2
answers
2k
views
How to implement multi-theme PHP application
I am developing an application which will handle many virtual stores and I would like to have many themes that the user could choose anytime. I would to know what's the main ideia to implement it. I ...
3
votes
3
answers
5k
views
Better php framework for shared hosting [closed]
I need to develop an app for booking appointments. This is going to be hosted in a shared server. So performance is the most important thing. I have used symfony2. I quite liked the framework. But ...
4
votes
3
answers
415
views
What am I missing from my CI stack?
Right now, the current deploy process at my work is based around tagging from the trunk and switching various PHP web sites for clients on our QA and Production servers. While this is simple from the ...