소스 검색

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 */