1 | <?php |
||
29 | abstract class AbstractBootstrapController extends Controller { |
||
30 | |||
31 | /** |
||
32 | * Get the event dispatcher. |
||
33 | * |
||
34 | * @return EventDispatcherInterface Returns the event dispatcher. |
||
35 | */ |
||
36 | protected function getEventDispatcher() { |
||
39 | |||
40 | /** |
||
41 | * Get the logger. |
||
42 | * |
||
43 | * @return LoggerInterface Returns the logger. |
||
44 | */ |
||
45 | protected function getLogger() { |
||
48 | |||
49 | /** |
||
50 | * Get the translator. |
||
51 | * |
||
52 | * @return TranslatorInterface Returns the translator. |
||
53 | */ |
||
54 | protected function getTranslator() { |
||
57 | |||
58 | /** |
||
59 | * Notify. |
||
60 | * |
||
61 | * @param string $eventName The event name. |
||
62 | * @param string $notification The notification. |
||
63 | * @param string $type The notification type. |
||
64 | * @return void |
||
65 | */ |
||
66 | private function notify($eventName, $notification, $type) { |
||
82 | |||
83 | /** |
||
84 | * Notify "Danger". |
||
85 | * |
||
86 | * @param string $notification The notification. |
||
87 | * @return void |
||
88 | */ |
||
89 | protected function notifyDanger($notification) { |
||
92 | |||
93 | /** |
||
94 | * Notify "Info". |
||
95 | * |
||
96 | * @param string $notification The notification. |
||
97 | * @return void |
||
98 | */ |
||
99 | protected function notifyInfo($notification) { |
||
102 | |||
103 | /** |
||
104 | * Notify "Success". |
||
105 | * |
||
106 | * @param string $notification The notification. |
||
107 | * @return void |
||
108 | */ |
||
109 | protected function notifySuccess($notification) { |
||
112 | |||
113 | /** |
||
114 | * Notify "Warning". |
||
115 | * |
||
116 | * @param string $notification The notification. |
||
117 | * @return void |
||
118 | */ |
||
119 | protected function notifyWarning($notification) { |
||
122 | |||
123 | } |
||
124 |