1 | <?php |
||
21 | class UserController |
||
22 | { |
||
23 | /** @var FormFactoryInterface */ |
||
24 | private $formFactory; |
||
25 | |||
26 | /** @var Router */ |
||
27 | private $router; |
||
28 | |||
29 | /** @var FlashBagInterface */ |
||
30 | private $flashBag; |
||
31 | |||
32 | /** @var TranslatorInterface */ |
||
33 | private $translator; |
||
34 | |||
35 | /** @var Handler */ |
||
36 | private $handler; |
||
37 | |||
38 | /** @var string */ |
||
39 | private $form; |
||
40 | |||
41 | /** @var UserRepository */ |
||
42 | private $userRepository; |
||
43 | |||
44 | /** @var string */ |
||
45 | private $redirectRoute; |
||
46 | |||
47 | /** |
||
48 | * @param FormFactoryInterface $formFactory |
||
49 | * @param Router $router |
||
50 | * @param FlashBagInterface $flashBag |
||
51 | * @param TranslatorInterface $translator |
||
52 | * @param string $form |
||
53 | * @param Handler $handler |
||
54 | * @param UserRepository $userRepository |
||
55 | * @param string $redirectRoute = null |
||
56 | */ |
||
57 | public function __construct( |
||
76 | |||
77 | /** |
||
78 | * @param Request $request |
||
79 | * @param int $id |
||
80 | * |
||
81 | * @Template() |
||
82 | * |
||
83 | * @return array |
||
84 | */ |
||
85 | public function baseAction(Request $request, $id = null) |
||
109 | |||
110 | /** |
||
111 | * @param int $id = null |
||
112 | * |
||
113 | * @return Form |
||
114 | */ |
||
115 | private function getFormForId($id = null) |
||
127 | } |
||
128 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.