瀏覽代碼

Minor cleanup

Jordi Boggiano 6 年之前
父節點
當前提交
d91df54cf9
共有 1 個文件被更改,包括 1 次插入2 次删除
  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 */