using factory class from symfony to enable bundle notation