How to build a custom Symfony Security Authentication on Silex 2

Symfony Security Component is a very complex/flexible system, there are a lot of concepts with a lot of features and require some time to figure out it's workflow. 

Install php7 from source on Ubuntu 14.04 LTS

# Install virtualbox

sudo apt-get install virtualbox 
sudo apt-get install virtualbox-dkms

# Install vagrant from source (vagrant from ubuntu repo doesn´t work)

sudo apt-get purge vagrant 
sudo dpkg -i vagrant_1.7.4_i686.deb 

# Install Ubuntu 14.04 LTS

vagrant init ubuntu/trusty32 
vagrant up --provider virtualbox
vagrant ssh

# On Ubuntu machine