v0.25.0
New on this version
Added
Authentication
Linna\Authentication\ProtectedController->protectWithRedirect()
methodLinna\Authentication\Exception\AuthenticationException
exception
Authorization
Linna\Authorization\EnhancedUser->__construct()
Linna\Authorization\EnhancedUser->hasRole()
methodLinna\Authorization\EnhancedUser->hasRoleById()
methodLinna\Authorization\EnhancedUser->hasRoleByName()
methodLinna\Authorization\EnhancedUserMapperInterface->grantPermission()
methodLinna\Authorization\EnhancedUserMapperInterface->grantPermissionById()
methodLinna\Authorization\EnhancedUserMapperInterface->grantPermissionByName()
methodLinna\Authorization\EnhancedUserMapperInterface->revokePermission()
methodLinna\Authorization\EnhancedUserMapperInterface->revokePermissionById()
methodLinna\Authorization\EnhancedUserMapperInterface->rovekePermissionByName()
methodLinna\Authorization\EnhancedUserMapperInterface->addRole()
methodLinna\Authorization\EnhancedUserMapperInterface->addRoleById()
methodLinna\Authorization\EnhancedUserMapperInterface->addRoleByName()
methodLinna\Authorization\EnhancedUserMapperInterface->removeRole()
methodLinna\Authorization\EnhancedUserMapperInterface->removeRoleById()
methodLinna\Authorization\EnhancedUserMapperInterface->removeRoleByName()
methodLinna\Authorization\FetchByPermissionInterface
interfaceLinna\Authorization\FetchByRoleInterface
interfaceLinna\Authorization\FetchByUserInterface
interfaceLinna\Authorization\PermissionTrait->canById()
methodLinna\Authorization\PermissionTrait->canByName()
methodLinna\Authorization\PermissionMapperInterface->permissionExistById()
methodLinna\Authorization\PermissionMapperInterface->permissionExistByName()
methodLinna\Authorization\Role->isUserInRole()
methodLinna\Authorization\Role->isUserInRoleById()
methodLinna\Authorization\Role->isUserInRoleByName()
methodLinna\Authorization\RoleMapperInterface->grantPermission()
methodLinna\Authorization\RoleMapperInterface->grantPermissionById()
methodLinna\Authorization\RoleMapperInterface->grantPermissionByName()
methodLinna\Authorization\RoleMapperInterface->revokePermission()
methodLinna\Authorization\RoleMapperInterface->revokePermissionById()
methodLinna\Authorization\RoleMapperInterface->revokePermissionByName()
methodLinna\Authorization\RoleMapperInterface->addUser()
methodLinna\Authorization\RoleMapperInterface->addUserById()
methodLinna\Authorization\RoleMapperInterface->addUserByName()
methodLinna\Authorization\RoleMapperInterface->removeUser()
methodLinna\Authorization\RoleMapperInterface->removeUserById()
methodLinna\Authorization\RoleMapperInterface->removeUserByName()
methodLinna\Authorization\RoleToUserMapperInterface
interface
Data Mapper
Linna\DataMapper\FetchAllInterface
interfaceLinna\DataMapper\FetchByNameInterface
interfaceLinna\DataMapper\FetchLimitInterface
interface
Changed
Authentication
Linna\Authentication\LoginAttempt
default value added to propertiesLinna\Authentication\Password->__construct()
now accept as agumentint $algo
andarray $options
Linna\Authentication\ProtectedController
now throwAuthenticationException
when try to access to protected resource without authenticationLinna\Authentication\ProtectedController->protect()
metod now accept as argumentAuthentication
instance and http status code asint
Linna\Authentication\ProtectedController
renamed toLinna\Authentication\ProtectedControllerTrait
Linna\Authentication\User
default value added to propertiesLinna\Authentication\UserMapperInterface
extendsLinna\DataMapper\FetchByNameInterface
Authorization
Linna\Authorization\Authorization
default value added to propertiesLinna\Authorization\Authorization->can
now accept Permission instance, permission id as integer or permission name as stringLinna\Authorization\EnhancedUserMapperInterface
extendsLinna\Authorization\FetchByPermissionInterface
Linna\Authorization\EnhancedUserMapperInterface
extendsLinna\Authorization\FetchByRoleInterface
Linna\Authorization\Permission
default value added to propertiesLinna\Authorization\PermissionMapperInterface
extendsLinna\DataMapper\FetchByNameInterface
Linna\Authorization\PermissionMapperInterface
extendsLinna\Authorization\FetchByRoleInterface
Linna\Authorization\PermissionMapperInterface
extendsLinna\Authorization\FetchByUserInterface
Linna\Authorization\PermissionTrait->can()
now accepts as argumentLinna\Authorization\Permission
instanceLinna\Authorization\RoleMapperInterface
extendsLinna\Authorization\FetchByPermissionInterface
Linna\Authorization\RoleMapperInterface
extendsLinna\Authorization\FetchByUserInterface
Linna\Authorizationn\PermissionTrait
default value added to propertiesLinna\Authorizationn\Role
default value added to properties
Data Mapper
Linna\Linna\DataMapper\DomainObjectAbstract->rId
public property added
Router
Linna\Http
namespace renamed toLinna\Router
Linna\Router\Route
memory usage improvementLinna\Router\Route
all properties now are publicLinna\Router\Router
default value added to propertiesLinna\Router\Router
memory usage improvementLinna\Router\Router->map()
now accept as argument instance ofRouteInterface
instead ofarray
Mvc
Linna\Mvc\FrontController
default value added to propertiesLinna\Mvc\FrontController->__construct()
now acceptRouteInterface
instance as last argument instead of$action
and$param
Linna\Mvc\View->__construct()
now needModel
andTemplateInterface
as arguments
Session
Linna\Session\MemcachedSessionHandler
default value added to propertiesLinna\Session\Session
default value added to propertiesLinna\Session\Session
memory usage improvement
Storage
Linna\Storage\AbstractConnector
default value added to propertiesLinna\Storage\AbstractStorageFactory
default value added to propertiesLinna\Storage\ExtendedPDO
default value added to properties
Fixed
- Minor issues fixed
Removed
Authorization
Linna\Authorization\EnhancedUserMapperInterface->fetchUserByRole()
methodLinna\Authorization\EnhancedUserMapperInterface->fetchUserByPermission()
methodLinna\Authorization\EnhancedUserMapperInterface->grant()
methodLinna\Authorization\EnhancedUserMapperInterface->revoke()
methodLinna\Authorization\PermissionMapperInterface->fetchPermissionsByRole()
methodLinna\Authorization\PermissionMapperInterface->fetchPermissionsByUser()
methodLinna\Authorization\PermissionMapperInterface->fetchUserPermissionHashTable()
methodLinna\Authorization\PermissionMapperInterface->permissionExist()
methodLinna\Authorization\PermissionTrait->getPermissions()
methodLinna\Authorization\PermissionTrait->setPermissions()
methodLinna\Authorization\Role->getUsers()
methodLinna\Authorization\Role->setUsers()
methodLinna\Authorization\RoleMapperInterface->fetchUserInheritedPermissions()
methodLinna\Authorization\RoleMapperInterface->permissionGrant()
methodLinna\Authorization\RoleMapperInterface->permissionRevoke()
methodLinna\Authorization\RoleMapperInterface->userAdd()
methodLinna\Authorization\RoleMapperInterface->userRemove()
method
Router
Linna\Router\NullRoute->toArray()
methodLinna\Router\RouteCollection->toArray()
method, use->getArrayCopy()
insteadLinna\Router\RouteInterface->toArray()
method
Shared
Linna\Shared\ClassOptionsTrait
trait
For more information read the full changelog.