@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * @param string $eventName The event name. |
| 111 | 111 | * @param string $notification The notification. |
| 112 | 112 | * @param string $type The notification type. |
| 113 | - * @return Event Returns the event. |
|
| 113 | + * @return null|\Symfony\Component\EventDispatcher\Event Returns the event. |
|
| 114 | 114 | */ |
| 115 | 115 | private function notify($eventName, $notification, $type) { |
| 116 | 116 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * Notify "Danger". |
| 132 | 132 | * |
| 133 | 133 | * @param string $notification The notification. |
| 134 | - * @return Event Returns the event. |
|
| 134 | + * @return null|\Symfony\Component\EventDispatcher\Event Returns the event. |
|
| 135 | 135 | */ |
| 136 | 136 | protected function notifyDanger($notification) { |
| 137 | 137 | return $this->notify(NotificationEvents::NOTIFICATION_DANGER, $notification, BootstrapBundle::BOOTSTRAP_DANGER); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * Notify "Info". |
| 142 | 142 | * |
| 143 | 143 | * @param string $notification The notification. |
| 144 | - * @return Event Returns the event. |
|
| 144 | + * @return null|\Symfony\Component\EventDispatcher\Event Returns the event. |
|
| 145 | 145 | */ |
| 146 | 146 | protected function notifyInfo($notification) { |
| 147 | 147 | return $this->notify(NotificationEvents::NOTIFICATION_INFO, $notification, BootstrapBundle::BOOTSTRAP_INFO); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * Notify "Success". |
| 152 | 152 | * |
| 153 | 153 | * @param string $notification The notification. |
| 154 | - * @return Event Returns the event. |
|
| 154 | + * @return null|\Symfony\Component\EventDispatcher\Event Returns the event. |
|
| 155 | 155 | */ |
| 156 | 156 | protected function notifySuccess($notification) { |
| 157 | 157 | return $this->notify(NotificationEvents::NOTIFICATION_SUCCESS, $notification, BootstrapBundle::BOOTSTRAP_SUCCESS); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | * Notify "Warning". |
| 162 | 162 | * |
| 163 | 163 | * @param string $notification The notification. |
| 164 | - * @return Event Returns the event. |
|
| 164 | + * @return null|\Symfony\Component\EventDispatcher\Event Returns the event. |
|
| 165 | 165 | */ |
| 166 | 166 | protected function notifyWarning($notification) { |
| 167 | 167 | return $this->notify(NotificationEvents::NOTIFICATION_WARNING, $notification, BootstrapBundle::BOOTSTRAP_WARNING); |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | * On kernel exception. |
| 124 | 124 | * |
| 125 | 125 | * @param GetResponseForExceptionEvent $event The event. |
| 126 | - * @return Event Returns the event. |
|
| 126 | + * @return GetResponseForExceptionEvent Returns the event. |
|
| 127 | 127 | */ |
| 128 | 128 | public function onKernelException(GetResponseForExceptionEvent $event) { |
| 129 | 129 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Determines if the connected user entity has role $roles. |
| 26 | 26 | * |
| 27 | - * @param object $user The user. |
|
| 27 | + * @param UserInterface|null $user The user. |
|
| 28 | 28 | * @param string|array $roles The role or roles. |
| 29 | 29 | * @param boolean $or OR ? If true, matches a role cause a break and the method returns true. |
| 30 | 30 | * @return boolean Returns true in case of success, false otherwise. |