get notification also for UserInterface

This will allow notification for admin
This commit is contained in:
Julien Fastré 2018-05-14 13:14:10 +02:00
parent 42f17f11e0
commit 6fc9fa9833
2 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,7 @@
*/
namespace Chill\MainBundle\Templating\UI;
use Symfony\Component\Security\Core\User\UserInterface;
use Chill\MainBundle\Entity\User;
/**
@ -37,7 +38,7 @@ class CountNotificationUser
$this->counters[] = $counter;
}
public function getSumNotification(User $u): int
public function getSumNotification(UserInterface $u): int
{
$sum = 0;

View File

@ -17,7 +17,7 @@
*/
namespace Chill\MainBundle\Templating\UI;
use Chill\MainBundle\Entity\User;
use Symfony\Component\Security\Core\User\UserInterface;
/**
*
@ -28,5 +28,5 @@ interface NotificationCounterInterface
/**
* Add a number of notification
*/
public function addNotification(User $u): int;
public function addNotification(UserInterface $u): int;
}