use silex 2 interfaces.
replace calls to share and extend with silex 2 syntax.