Archive for the ‘Listener’ Category

Adding options to select elements with javascript in Symfony2

Symfony2′s form component is magical. It takes care of a lot of things, keeps your code logically separated, and makes working with forms a real treat. In one of my projects, I use Knockoutjs to enhance the user experience. One major problem that I faced was dealing with the entityType. The entityType utilizes the doctrine [...]

Asynchronous-ish Events using kernel.terminate

Recently I’ve expanded my symfony2 awareness by diving into the Event Dispatcher docs and find myself using it alot to keep my code nicely separated. Some of these events have a fairly long execution time so I looked around to see if there was any way to execute these events after the response so the [...]