Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
s3b4stian committed Nov 22, 2023
1 parent 3d379f9 commit 01a3e16
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/Linna/Authorization/Authorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
namespace Linna\Authorization;

use Linna\Authentication\Authentication;
use Linna\Authorization\Permission;

//use Linna\Authorization\Permission;

/**
* Provide methods to check permissions for authenticated user.
Expand All @@ -33,7 +34,7 @@ class Authorization
* @param Authentication $authentication The <code>Authentication</code> instance.
* @param PermissionExtendedMapperInterface $permissionMapper A <code>PermissionMapperInterface</code> implementation.
*/
public function __construct(Authentication $authentication, PermissioExtendedMapperInterface $permissionMapper)
public function __construct(Authentication $authentication, PermissionExtendedMapperInterface $permissionMapper)
{
$userId = $authentication->getLoginData()['user_id'];

Expand Down
1 change: 0 additions & 1 deletion src/Linna/Authorization/PermissionExtended.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public function __construct(
name: $name,
description: $description,
inherited: $inherited,
active: $active,
created: $created,
lastUpdate: $lastUpdate
);
Expand Down
2 changes: 1 addition & 1 deletion src/Linna/Authorization/RoleExtendedMapperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*
* Contain methods required from concrete RoleExtended Mapper.
*/
interface RoleExtendedMapperInterface extends MapperInterface, FetchByNameInterface, FetchByPermissionInterface, FetchByUserInterface
interface RoleExtendedMapperInterface extends MapperInterface, FetchByNameInterface, FetchByPermissionInterface, FetchByUserInterface
{
/**
* Grant a permission at role.
Expand Down
2 changes: 1 addition & 1 deletion src/Linna/Authorization/RoleMapperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @license http://opensource.org/licenses/MIT MIT License
*/

namespace Linna\Authentication;
namespace Linna\Authorization;

use Linna\DataMapper\FetchByNameInterface;
use Linna\DataMapper\MapperInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Linna/Authorization/UserExtendedMapperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Linna\Authorization\Permission;
use Linna\Authorization\Role;
use Linna\DataMapper\MapperInterface;
use Linna\DataMapper\FetchByNameInterface;

/**
* User Mapper Interface.
Expand Down

0 comments on commit 01a3e16

Please sign in to comment.