1 | <?php |
||
15 | class EntityLockCheckController extends Controller |
||
16 | { |
||
17 | /** |
||
18 | * You can override this method to return the correct entity manager when using multiple databases ... |
||
19 | * |
||
20 | * @return \Doctrine\Common\Persistence\ObjectManager|object |
||
|
|||
21 | */ |
||
22 | protected function getEntityManager() |
||
26 | |||
27 | /** |
||
28 | * @Route( |
||
29 | * "check/{id}/{repository}", |
||
30 | * requirements={"id" = "\d+"}, |
||
31 | * name="KunstmaanAdminListBundle_entity_lock_check" |
||
32 | * ) |
||
33 | * |
||
34 | * @param Request $request |
||
35 | * @param $id |
||
36 | * @param $repository |
||
37 | * |
||
38 | * @return JsonResponse |
||
39 | */ |
||
40 | public function checkAction(Request $request, $id, $repository) |
||
63 | } |
||
64 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.