This is a past event. Please join us for Web Summer Camp this year.

Classes, interfaces, dependency injection and OOP best practices

About

Maybe you already understand the basics of object-oriented programming: classes, sub-classes and methods. In this workshop, we'll take you a step further by building real code to leverage the *really* neat stuff, like interfaces, dependency injection and patterns like composition inside of Symfony. Let's go!

Setting up developer environment 

You can follow the workshop better with the virtual appliance configuration used at the event. Check out the main repo and follow the instructions. In a nutshell, you should be able to create the Vagrant box with:

$ git clone https://github.com/netgen/summercamp-2015.git
$ cd summercamp-2015
$ git submodule init
$ git submodule update
$ vagrant up --no-provision

Then add all domains in the hosts as explained in the README.

To prepare this workshop, you should then:

$ vagrant ssh
(vagrant)$ cd /var/www/summercamp/
(vagrant)$ ./run.sh oop

You should have the workshop accessible in your browser at http://oop.phpsc/. If you have problems, check the FAQ. If you still have problems, you can fall back to using only workshop repo listed here.

Video - part 1

Video - part 2