Init
This commit is contained in:
15
app/model/Security/Identity.php
Normal file
15
app/model/Security/Identity.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace App\Model\Security;
|
||||
|
||||
use Nette\Security\SimpleIdentity as NetteIdentity;
|
||||
|
||||
class Identity extends NetteIdentity
|
||||
{
|
||||
|
||||
public function getFullname(): string
|
||||
{
|
||||
return sprintf('%s %s', $this->data['name'] ?? '', $this->data['surname'] ?? '');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user