Questions & Feedback
Found a typo or an error?
Want to improve this document? Edit it.
Need support or have a technical question?
Post to the user mailing-list.
Add your blog
TL;DR: jump to the conclusion. Symfony2 is a set of libraries which help you in your everyday tasks. You can even stack them together and create a framework with it: Symfony standard edition Symfony empty edition Silex Many frameworks already use a lot of components from Symfony2: Laravel Drupal eZ Publish PHPUnit phpBB Composer In this article, we'll see the Console Component, which allows you to build Command Line Interface (CLI) applications. Symfony 2.5 will be released in may 2014, with [...]
Once we released 1.0, we did not sit idle. Instead we immediately began work on improving the CMF. In fact there was such a continuous stream of good ideas and things that felt like a must have, that we let ourselves slip quite far from our defined release process. Or lets say we had every intention of aliging ourselves with the Symfony2 core release cycle by releasing within 1-2 months of core which would have meant a 1.1 release in January. Instead it tooks us 6 months to get to RC1, which on [...]
This is the 10th post in our series on Symfony2 components and we will cover the latest component added to Symfony: the ExpressionLanguage component. This component was added in version 2.4 and provides a way to have dynamic aspects in static configurations. For example, it can be used to evaluate expressions in configuration files, create a DSL ,or build a business rules […] The post Symfony2 components overview: ExpressionLanguage appeared first on ServerGrove.
The redesign serie continue, after works on the demo and on the sonata-project.org websites, we are happy to present the new SonataAdminBundle theme.
Developing a RESTful API with Symfony has been covered multiple times by many people. If you want to learn how to implement it “the right way”, I suggest reading William Durand’s post. If you want to implement it “the best…Read more ›
Value object definition “A small simple object, like money or a data range, whose equality isn’t based on identity”1 Use case Let’s assume for example that you want to represent addresses in your application domain. What is really important to represent addresses is the value they hold and not the exact instance they could become. ...
Ansible is a powerful automation engine that simplifies deploying systems and apps. Its popularity has been rising rapidly as developers and system administrators look for simpler ways to manage servers and deploy applications. The selling points of Ansible are: simplicity: the configuration is done through INI and YAML files agentless: there is no agent to […] The post Deployment of Symfony2 applications with Ansible appeared first on ServerGrove.
One of the central classes in the Symfony framework is: Symfony\Component\HttpFoundation\Request The front controller instanciates this object and populates it with the properties of the current HTTP Request. Controllers can easily obtain the current Request instance. Services can have the current Request object injected either directly or via the request stack (which is also subrequest […]
In my previous post I talked about avoiding optional dependencies. The example I used was of changing an optional dependency on a logger into a mandatory one. We injected a null logger implementation when we did not need logging. In this post I am going to look at this from the configuration point of view. […]
I tried to avoid the bad practice of generating code. So I decided it was enough and created a custom Application.php class on my app/ folder and use that instead inside the console script. Something like this: #!/usr/bin/env php
This is the 9th post in this series about the Symfony2 components. Today’s post covers one of the most popular PHP packages: the Finder component. According to Packagist it is the 14th most used PHP package, and the 3rd Symfony2 component, only after the EventDispatcher and Console ones. Installation Installation is really easy using Composer: If you have […] The post Symfony2 components overview: Finder appeared first on ServerGrove.
Lire la version française Elasticsearch allows you to make advanced searches. Some users may want to extract their search results to Excel (or LibreOffice Calc…) to work on the data. As we explained in our post Export data to a … Continue reading →The post Elasticsearch and Symfony, export with the Scan/Scroll functions appeared first on Obtao.
The LswGuzzleBundle adds Guzzle API call functionality to your Symfony2 application. It is easy to use from the code and is aimed to provide full debugging capabilities. source: Github On Packagist, you can see that in the past two years we have published 10 LeaseWeb Symfony2 bundles. The latest and tenth addition to the list […] The post Symfony2 Guzzle bundle for cURL API calling appeared first on LeaseWeb Labs.
This post covers the Symfony Translation component. The component provides tools to internationalize our applications. The Translation component Modern applications need to be internationalized and localized to be able to reach people from all over the world. Internationalization – aka i18n – is the process of designing a software application so that it can be adapted […] The post Symfony2 components overview: Translation appeared first on ServerGrove.
In my previous post I argued against setter injection. Optional dependencies are one of the main objections raised in the comments and elsewhere. I did mention these with a suggestion of just making them optional constructor arguments. I also mentioned that refactoring to stop it being optional was a solution. I think that this is […]
A while ago I had a twitter discussion with Igor Wiedler and Matthias Noback about setter injected dependencies being mutable. When using objects as services in an application then we do not want them to have state. This is because we can them call them many times without the outcome changing. For example, if we […]