Remove unused import
Change directory to project root before bootstrapping
Add pagination adapter wrapping around a Doctrine\ORM\EntityRepository