Ver Fonte

Minor cleanup

Jordi Boggiano há 6 anos atrás
pai
commit
d91df54cf9
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      src/Packagist/WebBundle/Controller/ApiController.php

+ 1 - 2
src/Packagist/WebBundle/Controller/ApiController.php

@@ -324,8 +324,7 @@ class ApiController extends Controller
             return new Response(json_encode(array('status' => 'error', 'message' => 'Could not find a package that matches this request (does user maintain the package?)')), 404);
         }
 
-        // put both updating the database and scanning the repository in a transaction
-        $em = $this->get('doctrine.orm.entity_manager');
+        $em = $this->getDoctrine()->getManager();
         $jobs = [];
 
         /** @var Package $package */