I'm trying to use the DOMPDF library with the Symfony framework. I put the necessary file to include in autoload.php. When I try to use it inside an action in a controller I get the following error:
Fatal error: Class 'MyProject\ClientBundle\Controller\DOMPDF' not found in /var/www.....
I uses namespaces, this is my first line in my controller file:
namespace MyProject\ClientBundle\Controller;
The DOMPDF library doesn't use namespaces. How could I make it work?