Skip to content

v0.25.0

Compare
Choose a tag to compare
@s3b4stian s3b4stian released this 13 Jan 12:48

New on this version

Added

Authentication

  • Linna\Authentication\ProtectedController->protectWithRedirect() method
  • Linna\Authentication\Exception\AuthenticationException exception

Authorization

  • Linna\Authorization\EnhancedUser->__construct()
  • Linna\Authorization\EnhancedUser->hasRole() method
  • Linna\Authorization\EnhancedUser->hasRoleById() method
  • Linna\Authorization\EnhancedUser->hasRoleByName() method
  • Linna\Authorization\EnhancedUserMapperInterface->grantPermission() method
  • Linna\Authorization\EnhancedUserMapperInterface->grantPermissionById() method
  • Linna\Authorization\EnhancedUserMapperInterface->grantPermissionByName() method
  • Linna\Authorization\EnhancedUserMapperInterface->revokePermission() method
  • Linna\Authorization\EnhancedUserMapperInterface->revokePermissionById() method
  • Linna\Authorization\EnhancedUserMapperInterface->rovekePermissionByName() method
  • Linna\Authorization\EnhancedUserMapperInterface->addRole() method
  • Linna\Authorization\EnhancedUserMapperInterface->addRoleById() method
  • Linna\Authorization\EnhancedUserMapperInterface->addRoleByName() method
  • Linna\Authorization\EnhancedUserMapperInterface->removeRole() method
  • Linna\Authorization\EnhancedUserMapperInterface->removeRoleById() method
  • Linna\Authorization\EnhancedUserMapperInterface->removeRoleByName() method
  • Linna\Authorization\FetchByPermissionInterface interface
  • Linna\Authorization\FetchByRoleInterface interface
  • Linna\Authorization\FetchByUserInterface interface
  • Linna\Authorization\PermissionTrait->canById() method
  • Linna\Authorization\PermissionTrait->canByName() method
  • Linna\Authorization\PermissionMapperInterface->permissionExistById() method
  • Linna\Authorization\PermissionMapperInterface->permissionExistByName() method
  • Linna\Authorization\Role->isUserInRole() method
  • Linna\Authorization\Role->isUserInRoleById() method
  • Linna\Authorization\Role->isUserInRoleByName() method
  • Linna\Authorization\RoleMapperInterface->grantPermission() method
  • Linna\Authorization\RoleMapperInterface->grantPermissionById() method
  • Linna\Authorization\RoleMapperInterface->grantPermissionByName() method
  • Linna\Authorization\RoleMapperInterface->revokePermission() method
  • Linna\Authorization\RoleMapperInterface->revokePermissionById() method
  • Linna\Authorization\RoleMapperInterface->revokePermissionByName() method
  • Linna\Authorization\RoleMapperInterface->addUser() method
  • Linna\Authorization\RoleMapperInterface->addUserById() method
  • Linna\Authorization\RoleMapperInterface->addUserByName() method
  • Linna\Authorization\RoleMapperInterface->removeUser() method
  • Linna\Authorization\RoleMapperInterface->removeUserById() method
  • Linna\Authorization\RoleMapperInterface->removeUserByName() method
  • Linna\Authorization\RoleToUserMapperInterface interface

Data Mapper

  • Linna\DataMapper\FetchAllInterface interface
  • Linna\DataMapper\FetchByNameInterface interface
  • Linna\DataMapper\FetchLimitInterface interface

Changed

Authentication

  • Linna\Authentication\LoginAttempt default value added to properties
  • Linna\Authentication\Password->__construct() now accept as agument int $algo and array $options
  • Linna\Authentication\ProtectedController now throw AuthenticationException when try to access to protected resource without authentication
  • Linna\Authentication\ProtectedController->protect() metod now accept as argument Authentication instance and http status code as int
  • Linna\Authentication\ProtectedController renamed to Linna\Authentication\ProtectedControllerTrait
  • Linna\Authentication\User default value added to properties
  • Linna\Authentication\UserMapperInterface extends Linna\DataMapper\FetchByNameInterface

Authorization

  • Linna\Authorization\Authorization default value added to properties
  • Linna\Authorization\Authorization->can now accept Permission instance, permission id as integer or permission name as string
  • Linna\Authorization\EnhancedUserMapperInterface extends Linna\Authorization\FetchByPermissionInterface
  • Linna\Authorization\EnhancedUserMapperInterface extends Linna\Authorization\FetchByRoleInterface
  • Linna\Authorization\Permission default value added to properties
  • Linna\Authorization\PermissionMapperInterface extends Linna\DataMapper\FetchByNameInterface
  • Linna\Authorization\PermissionMapperInterface extends Linna\Authorization\FetchByRoleInterface
  • Linna\Authorization\PermissionMapperInterface extends Linna\Authorization\FetchByUserInterface
  • Linna\Authorization\PermissionTrait->can() now accepts as argument Linna\Authorization\Permission instance
  • Linna\Authorization\RoleMapperInterface extends Linna\Authorization\FetchByPermissionInterface
  • Linna\Authorization\RoleMapperInterface extends Linna\Authorization\FetchByUserInterface
  • Linna\Authorizationn\PermissionTrait default value added to properties
  • Linna\Authorizationn\Role default value added to properties

Data Mapper

  • Linna\Linna\DataMapper\DomainObjectAbstract->rId public property added

Router

  • Linna\Http namespace renamed to Linna\Router
  • Linna\Router\Route memory usage improvement
  • Linna\Router\Route all properties now are public
  • Linna\Router\Router default value added to properties
  • Linna\Router\Router memory usage improvement
  • Linna\Router\Router->map() now accept as argument instance of RouteInterface instead of array

Mvc

  • Linna\Mvc\FrontController default value added to properties
  • Linna\Mvc\FrontController->__construct() now accept RouteInterface instance as last argument instead of $action and $param
  • Linna\Mvc\View->__construct() now need Model and TemplateInterface as arguments

Session

  • Linna\Session\MemcachedSessionHandler default value added to properties
  • Linna\Session\Session default value added to properties
  • Linna\Session\Session memory usage improvement

Storage

  • Linna\Storage\AbstractConnector default value added to properties
  • Linna\Storage\AbstractStorageFactory default value added to properties
  • Linna\Storage\ExtendedPDO default value added to properties

Fixed

  • Minor issues fixed

Removed

Authorization

  • Linna\Authorization\EnhancedUserMapperInterface->fetchUserByRole() method
  • Linna\Authorization\EnhancedUserMapperInterface->fetchUserByPermission() method
  • Linna\Authorization\EnhancedUserMapperInterface->grant() method
  • Linna\Authorization\EnhancedUserMapperInterface->revoke() method
  • Linna\Authorization\PermissionMapperInterface->fetchPermissionsByRole() method
  • Linna\Authorization\PermissionMapperInterface->fetchPermissionsByUser() method
  • Linna\Authorization\PermissionMapperInterface->fetchUserPermissionHashTable() method
  • Linna\Authorization\PermissionMapperInterface->permissionExist() method
  • Linna\Authorization\PermissionTrait->getPermissions() method
  • Linna\Authorization\PermissionTrait->setPermissions() method
  • Linna\Authorization\Role->getUsers() method
  • Linna\Authorization\Role->setUsers() method
  • Linna\Authorization\RoleMapperInterface->fetchUserInheritedPermissions() method
  • Linna\Authorization\RoleMapperInterface->permissionGrant() method
  • Linna\Authorization\RoleMapperInterface->permissionRevoke() method
  • Linna\Authorization\RoleMapperInterface->userAdd() method
  • Linna\Authorization\RoleMapperInterface->userRemove() method

Router

  • Linna\Router\NullRoute->toArray() method
  • Linna\Router\RouteCollection->toArray() method, use ->getArrayCopy() instead
  • Linna\Router\RouteInterface->toArray() method

Shared

  • Linna\Shared\ClassOptionsTrait trait

For more information read the full changelog.