there is a twig helper to retrieve the provider ... just use it ... ``sonata_product_provider``