1 | <?php |
||
37 | abstract class AbstractController extends Controller { |
||
|
|||
38 | |||
39 | /** |
||
40 | * Get the container. |
||
41 | * |
||
42 | * @return Container Returns the container. |
||
43 | */ |
||
44 | protected function getContainer() { |
||
47 | |||
48 | /** |
||
49 | * Get the event dispatcher. |
||
50 | * |
||
51 | * @return EventDispatcherInterface Returns the event dispatcher. |
||
52 | */ |
||
53 | protected function getEventDispatcher() { |
||
56 | |||
57 | /** |
||
58 | * Get the form helper. |
||
59 | * |
||
60 | * @return FormHelper Returns the form helper. |
||
61 | */ |
||
62 | protected function getFormHelper() { |
||
65 | |||
66 | /** |
||
67 | * Get the kernel event listener. |
||
68 | * |
||
69 | * @return KernelEventListener Returns the kernel event listener. |
||
70 | */ |
||
71 | protected function getKernelEventListener() { |
||
74 | |||
75 | /** |
||
76 | * Get the logger. |
||
77 | * |
||
78 | * @return LoggerInterface Returns the logger. |
||
79 | */ |
||
80 | protected function getLogger() { |
||
83 | |||
84 | /** |
||
85 | * Get the router. |
||
86 | * |
||
87 | * @return RouterInterface Returns the router. |
||
88 | */ |
||
89 | protected function getRouter() { |
||
92 | |||
93 | /** |
||
94 | * Get the session. |
||
95 | * |
||
96 | * @return SessionInterface Returns the session. |
||
97 | */ |
||
98 | protected function getSession() { |
||
101 | |||
102 | /** |
||
103 | * Get the translator. |
||
104 | * |
||
105 | * @return TranslatorInterface Returns the translator. |
||
106 | */ |
||
107 | protected function getTranslator() { |
||
110 | |||
111 | /** |
||
112 | * Determines if the connected user have roles or redirect. |
||
113 | * |
||
114 | * @param array $roles The roles. |
||
115 | * @param bool $or OR ? |
||
116 | * @param string $redirectUrl The redirect URL. |
||
117 | * @param string $originUrl The origin URL. |
||
118 | * @return bool Returns true. |
||
119 | * @throws BadUserRoleException Throws a bad user role exception. |
||
120 | */ |
||
121 | protected function hasRolesOrRedirect(array $roles, $or, $redirectUrl, $originUrl = "") { |
||
137 | |||
138 | /** |
||
139 | * Notify. |
||
140 | * |
||
141 | * @param string $eventName The event name. |
||
142 | * @param NotificationInterface $notification The notification. |
||
143 | * @return Event Returns the event. |
||
144 | */ |
||
145 | protected function notify($eventName, NotificationInterface $notification) { |
||
159 | |||
160 | } |
||
161 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.