transform lib to symfony2 bundle