Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [symfony]

For questions about Symfony, a free PHP web application framework.

0
votes
0answers
52 views

Which architectural patterns should I use for a decoupled notification system?

Background The application I work on use a command bus to handle events (REST API HTTP requests, commande line interface). This bus is built using the well known league/tactician package. Feature to ...
1
vote
0answers
22 views

Is there a Django equivalent to Symfony's services?

Symfony has services, which are separate from controllers so that they may be re-used anywhere. Additionally, Symfony services come with dependency injection. Is there a direct analog to Symfony's ...
0
votes
2answers
359 views

Should i use an abstract class or an interface for my doctrine model?

In Doctrine, assuming I want to implement different types of vehicles. Maybe a car, a plane, a bicycle and so on ... all these vehicles have many different properties but also very common things like ...
0
votes
0answers
42 views

how to structure symfony's code in case of lack of models

I have the following scenario: I'm developing a CRM in symfony which takes advantage of microservices to gather and manage information. Basically what it does is presenting information coming from the ...
-1
votes
1answer
100 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 ...
2
votes
0answers
67 views

API Cilent - global request method or one method per request?

I am designing a 3rd-party library for developers to retrieve data from various endpoints of another system which itself has multiple APIs. Each of those APIs may contain the same type of request but ...
1
vote
1answer
561 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 ...
0
votes
1answer
48 views

When error is it good to send different formats?

On a REST api I have these endpoints: GET: /tracks.json GET: /tracks.xml GET: /tracks.csv It receives a tracks resourse and the format gets defined by .^string^ that is after the resourse. eg the ...
7
votes
5answers
782 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 ...
1
vote
2answers
137 views

Is it a good practice to load Models as a service like I do when I use Symfony framework?

Usually on Symnfony framework I use the provided depedency Injection container and on Controller I load the models as a service. To be more In detail on a current project I am having the following ...
9
votes
2answers
6k 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 ...
3
votes
1answer
284 views

How to improve my workflow (git, symfony, composer, bower, grunt)?

It's time to improve my workflow. I never had the responsibility of setting up the infrastructure, managing git, versions or releases. For me it was simple push/pull most of the time and I think, the ...
0
votes
0answers
40 views

Should I stick a service in a variable or reference it multiple times

This is more of a micro-optimisation question which is why I posted it here rather than StackOverflow. I have many instances of this sort of code in my Symfony 2 application where I get the ...
3
votes
0answers
506 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 ...
0
votes
0answers
92 views

object configured by another class

Below I describe what I'm trying to do and how I think I will do it. What I'm hoping is that a design pattern exists for using one object to configure another. This would allow me to have a nice ...
1
vote
1answer
1k 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 ...
0
votes
0answers
187 views

How to handle karma/bower in a Symfony Bundle on github?

i am working on a Symfony Bundle that uses angular among other javascript deps. Now i want to unit-test my javascript code and i want to ship those tests as well. My initial idea was to add bower....
1
vote
1answer
117 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 ...
0
votes
1answer
99 views

Roles configuration strategy

We're close to start new project using sf2, and, probably, FosUserBundle. Keeping that in mind - what's the best strategy to define roles? App will be used by multiple divisions inside our company (...
0
votes
1answer
308 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
2answers
2k views

Repository Pattern: Doctrine2 vs Microsoft Entity Framework?

I have been using Symfony2 with Doctrine2 for some years. I have recently started using Microsoft's Entity Framework with MVC5. From my Symfony2 experience I understand that a repository's job is only ...
1
vote
1answer
721 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 ...
4
votes
2answers
2k views

Where should the database and mail parameters be stored in a Symfony2 app?

In the default folder structure for a Symfony2 project the database and mail server credentials are stored in parameters.yml file inside ProjectRoot/app/config/parameters.yml with these default values:...
0
votes
2answers
1k 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 ...
2
votes
3answers
1k views

Pushing a new version of a live web application in a Git based workflow

I have a question regarding workflow in web development. I'm building my project in Symfony, and it's in Git. Right now, I have three environments, dev (local), staging and prod. The project itself ...
3
votes
3answers
4k 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 ...
1
vote
2answers
1k views

Differences between symfony 2 and 1?

I'm starting symfony and interested in learning where symfony is coming from. In terms of it's architectural challenges. What are the architectural or philosophical differences between symfony 2 and ...
4
votes
3answers
385 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 ...
1
vote
1answer
1k views

What does Symfony Framework offer that Zend Framework does not? [closed]

I have professionally working with Zend Framework for about a year. No major complaints. With some modifications, it has done a good job. I'm beginning to work on a side project where I want to ...