1 | <?php |
||
30 | abstract class AbstractBootstrapController extends Controller { |
||
31 | |||
32 | /** |
||
33 | * Get the event dispatcher. |
||
34 | * |
||
35 | * @return EventDispatcherInterface Returns the event dispatcher. |
||
36 | */ |
||
37 | protected function getEventDispatcher() { |
||
40 | |||
41 | /** |
||
42 | * Get the logger. |
||
43 | * |
||
44 | * @return LoggerInterface Returns the logger. |
||
45 | */ |
||
46 | protected function getLogger() { |
||
49 | |||
50 | /** |
||
51 | * Get the router. |
||
52 | * |
||
53 | * @return RouterInterface Returns the router. |
||
54 | */ |
||
55 | protected function getRouter() { |
||
58 | |||
59 | /** |
||
60 | * Get the translator. |
||
61 | * |
||
62 | * @return TranslatorInterface Returns the translator. |
||
63 | */ |
||
64 | protected function getTranslator() { |
||
67 | |||
68 | /** |
||
69 | * Notify. |
||
70 | * |
||
71 | * @param string $eventName The event name. |
||
72 | * @param string $notification The notification. |
||
73 | * @param string $type The notification type. |
||
74 | * @return void |
||
75 | */ |
||
76 | private function notify($eventName, $notification, $type) { |
||
92 | |||
93 | /** |
||
94 | * Notify "Danger". |
||
95 | * |
||
96 | * @param string $notification The notification. |
||
97 | * @return void |
||
98 | */ |
||
99 | protected function notifyDanger($notification) { |
||
102 | |||
103 | /** |
||
104 | * Notify "Info". |
||
105 | * |
||
106 | * @param string $notification The notification. |
||
107 | * @return void |
||
108 | */ |
||
109 | protected function notifyInfo($notification) { |
||
112 | |||
113 | /** |
||
114 | * Notify "Success". |
||
115 | * |
||
116 | * @param string $notification The notification. |
||
117 | * @return void |
||
118 | */ |
||
119 | protected function notifySuccess($notification) { |
||
122 | |||
123 | /** |
||
124 | * Notify "Warning". |
||
125 | * |
||
126 | * @param string $notification The notification. |
||
127 | * @return void |
||
128 | */ |
||
129 | protected function notifyWarning($notification) { |
||
132 | |||
133 | } |
||
134 |