Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Agile Webentwicklung mit symfony2 am Bespiel ei...

Agile Webentwicklung mit symfony2 am Bespiel einer SOAP-Schnittstelle der PicturePlix

This talk in German was given at Competence Center Day 2012 at University of Applied Science Munich. It shows the usage of symfony2 in a project at PicturePlix.

Sebastian

April 26, 2012
Tweet

More Decks by Sebastian

Other Decks in Programming

Transcript

  1. 25.04.2012 Agile Webentwicklung mit symfony2 am Bespiel einer SOAP-Schnittstelle der

    PicturePlix Sebastian Göttschkes PicturePlix GmbH Competence Center Day
  2. 25.04.2012 Dependency Injection class DependingClass{ // .. public void doSomething(){

    ComplicatedClass dependency = new ComplicatedClass(); // .. } }
  3. 25.04.2012 Dependency Injection class DependingClass{ // .. public void doSomething(){

    ComplicatedClass dependency = new ComplicatedClass(); // .. } }
  4. 25.04.2012 Dependency Injection class DependingClass{ private IComplicatedClass complicatedClass; public DependingClass(IComplicatedClass

    complicatedClass){ this.complicatedClass = complicatedClass; // .. } public void doSomething(){ IComplicatedClass dependency = this.complicatedClass; // .. } }
  5. 25.04.2012 Dependency Injection class UsingClass{ private IContainer container; // ..

    public void useDependingClass(){ IComplicatedClass dependingClass = (IcomplicatedClass) this.container.get('key'); // .. } }
  6. 25.04.2012 Testing (with PHPUnit) class IndependentClassTest extends \PHPUnit_Framework_TestCase{ public function

    testDoSomething(){ $dependency = new ComplicatedClassMock(); $dependingClass = new DependingClass($dependency); // .. } }