Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed CS (mainly method signatures)

  • Loading branch information...
commit c900a0c34f7da7107e68c558e4bddd1676e7da43 1 parent 1d26f92
@fabpot fabpot authored
Showing with 142 additions and 144 deletions.
  1. +1 −1  Acl/Dbal/AclProvider.php
  2. +0 −1  Acl/Domain/Acl.php
  3. +1 −1  Acl/Domain/ObjectIdentity.php
  4. +2 −2 Acl/Domain/UserSecurityIdentity.php
  5. +6 −6 Acl/Model/AclCacheInterface.php
  6. +10 −10 Acl/Model/AclInterface.php
  7. +3 −3 Acl/Model/AclProviderInterface.php
  8. +1 −1  Acl/Model/AuditLoggerInterface.php
  9. +4 −4 Acl/Model/AuditableAclInterface.php
  10. +2 −2 Acl/Model/AuditableEntryInterface.php
  11. +1 −1  Acl/Model/DomainObjectInterface.php
  12. +6 −6 Acl/Model/EntryInterface.php
  13. +1 −1  Acl/Model/FieldEntryInterface.php
  14. +15 −15 Acl/Model/MutableAclInterface.php
  15. +3 −3 Acl/Model/MutableAclProviderInterface.php
  16. +3 −3 Acl/Model/ObjectIdentityInterface.php
  17. +1 −1  Acl/Model/ObjectIdentityRetrievalStrategyInterface.php
  18. +2 −2 Acl/Model/PermissionGrantingStrategyInterface.php
  19. +1 −1  Acl/Model/SecurityIdentityInterface.php
  20. +1 −1  Acl/Model/SecurityIdentityRetrievalStrategyInterface.php
  21. +1 −1  Acl/Permission/MaskBuilder.php
  22. +2 −2 Acl/Permission/PermissionMapInterface.php
  23. +0 −1  Acl/Resources/bin/generateSql.php
  24. +1 −1  Core/Authentication/AuthenticationManagerInterface.php
  25. +3 −3 Core/Authentication/AuthenticationTrustResolverInterface.php
  26. +5 −5 Core/Authentication/RememberMe/PersistentTokenInterface.php
  27. +4 −4 Core/Authentication/RememberMe/TokenProviderInterface.php
  28. +14 −14 Core/Authentication/Token/TokenInterface.php
  29. +3 −3 Core/Authorization/AccessDecisionManagerInterface.php
  30. +3 −3 Core/Authorization/Voter/VoterInterface.php
  31. +1 −1  Core/Encoder/EncoderFactoryInterface.php
  32. +2 −2 Core/Encoder/PasswordEncoderInterface.php
  33. +1 −1  Core/Role/RoleHierarchyInterface.php
  34. +1 −1  Core/Role/RoleInterface.php
  35. +1 −1  Core/SecurityContext.php
  36. +3 −3 Core/SecurityContextInterface.php
  37. +4 −4 Core/User/AdvancedUserInterface.php
  38. +2 −2 Core/User/UserCheckerInterface.php
  39. +6 −6 Core/User/UserInterface.php
  40. +3 −3 Core/User/UserProviderInterface.php
  41. +1 −1  Http/Authentication/AuthenticationFailureHandlerInterface.php
  42. +1 −1  Http/Authentication/AuthenticationSuccessHandlerInterface.php
  43. +1 −1  Http/Authorization/AccessDeniedHandlerInterface.php
  44. +1 −1  Http/EntryPoint/AuthenticationEntryPointInterface.php
  45. +1 −1  Http/Firewall/AbstractAuthenticationListener.php
  46. +1 −1  Http/Firewall/AbstractPreAuthenticatedListener.php
  47. +1 −1  Http/Firewall/ListenerInterface.php
  48. +1 −1  Http/FirewallMapInterface.php
  49. +1 −1  Http/Logout/LogoutHandlerInterface.php
  50. +1 −1  Http/Logout/LogoutSuccessHandlerInterface.php
  51. +4 −4 Http/RememberMe/AbstractRememberMeServices.php
  52. +3 −3 Http/RememberMe/RememberMeServicesInterface.php
  53. +1 −1  Http/Session/SessionAuthenticationStrategyInterface.php
View
2  Acl/Dbal/AclProvider.php
@@ -339,7 +339,7 @@ protected function getSelectObjectIdentityIdSql(ObjectIdentityInterface $oid)
* @param ObjectIdentityInterface $oid
* @return integer
*/
- protected final function retrieveObjectIdentityPrimaryKey(ObjectIdentityInterface $oid)
+ final protected function retrieveObjectIdentityPrimaryKey(ObjectIdentityInterface $oid)
{
return $this->connection->executeQuery($this->getSelectObjectIdentityIdSql($oid))->fetchColumn();
}
View
1  Acl/Domain/Acl.php
@@ -19,7 +19,6 @@
use Symfony\Component\Security\Acl\Model\PermissionGrantingStrategyInterface;
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
-
/**
* An ACL implementation.
*
View
2  Acl/Domain/ObjectIdentity.php
@@ -52,7 +52,7 @@ public function __construct($identifier, $type)
* @throws \InvalidArgumentException
* @return ObjectIdentity
*/
- static public function fromDomainObject($domainObject)
+ public static function fromDomainObject($domainObject)
{
if (!is_object($domainObject)) {
throw new InvalidDomainObjectException('$domainObject must be an object.');
View
4 Acl/Domain/UserSecurityIdentity.php
@@ -50,7 +50,7 @@ public function __construct($username, $class)
* @param UserInterface $user
* @return UserSecurityIdentity
*/
- static public function fromAccount(UserInterface $user)
+ public static function fromAccount(UserInterface $user)
{
return new self($user->getUsername(), get_class($user));
}
@@ -61,7 +61,7 @@ static public function fromAccount(UserInterface $user)
* @param TokenInterface $token
* @return UserSecurityIdentity
*/
- static public function fromToken(TokenInterface $token)
+ public static function fromToken(TokenInterface $token)
{
$user = $token->getUser();
View
12 Acl/Model/AclCacheInterface.php
@@ -24,7 +24,7 @@
* @param string $primaryKey a serialized primary key
* @return void
*/
- function evictFromCacheById($primaryKey);
+ public function evictFromCacheById($primaryKey);
/**
* Removes an ACL from the cache
@@ -34,7 +34,7 @@ function evictFromCacheById($primaryKey);
* @param ObjectIdentityInterface $oid
* @return void
*/
- function evictFromCacheByIdentity(ObjectIdentityInterface $oid);
+ public function evictFromCacheByIdentity(ObjectIdentityInterface $oid);
/**
* Retrieves an ACL for the given object identity primary key from the cache
@@ -42,7 +42,7 @@ function evictFromCacheByIdentity(ObjectIdentityInterface $oid);
* @param integer $primaryKey
* @return AclInterface
*/
- function getFromCacheById($primaryKey);
+ public function getFromCacheById($primaryKey);
/**
* Retrieves an ACL for the given object identity from the cache
@@ -50,7 +50,7 @@ function getFromCacheById($primaryKey);
* @param ObjectIdentityInterface $oid
* @return AclInterface
*/
- function getFromCacheByIdentity(ObjectIdentityInterface $oid);
+ public function getFromCacheByIdentity(ObjectIdentityInterface $oid);
/**
* Stores a new ACL in the cache
@@ -58,12 +58,12 @@ function getFromCacheByIdentity(ObjectIdentityInterface $oid);
* @param AclInterface $acl
* @return void
*/
- function putInCache(AclInterface $acl);
+ public function putInCache(AclInterface $acl);
/**
* Removes all ACLs from the cache
*
* @return void
*/
- function clearCache();
+ public function clearCache();
}
View
20 Acl/Model/AclInterface.php
@@ -28,7 +28,7 @@
*
* @return array
*/
- function getClassAces();
+ public function getClassAces();
/**
* Returns all class-field-based ACEs associated with this ACL
@@ -36,14 +36,14 @@ function getClassAces();
* @param string $field
* @return array
*/
- function getClassFieldAces($field);
+ public function getClassFieldAces($field);
/**
* Returns all object-based ACEs associated with this ACL
*
* @return array
*/
- function getObjectAces();
+ public function getObjectAces();
/**
* Returns all object-field-based ACEs associated with this ACL
@@ -51,28 +51,28 @@ function getObjectAces();
* @param string $field
* @return array
*/
- function getObjectFieldAces($field);
+ public function getObjectFieldAces($field);
/**
* Returns the object identity associated with this ACL
*
* @return ObjectIdentityInterface
*/
- function getObjectIdentity();
+ public function getObjectIdentity();
/**
* Returns the parent ACL, or null if there is none.
*
* @return AclInterface|null
*/
- function getParentAcl();
+ public function getParentAcl();
/**
* Whether this ACL is inheriting ACEs from a parent ACL.
*
* @return Boolean
*/
- function isEntriesInheriting();
+ public function isEntriesInheriting();
/**
* Determines whether field access is granted
@@ -83,7 +83,7 @@ function isEntriesInheriting();
* @param Boolean $administrativeMode
* @return Boolean
*/
- function isFieldGranted($field, array $masks, array $securityIdentities, $administrativeMode = false);
+ public function isFieldGranted($field, array $masks, array $securityIdentities, $administrativeMode = false);
/**
* Determines whether access is granted
@@ -94,7 +94,7 @@ function isFieldGranted($field, array $masks, array $securityIdentities, $admini
* @param Boolean $administrativeMode
* @return Boolean
*/
- function isGranted(array $masks, array $securityIdentities, $administrativeMode = false);
+ public function isGranted(array $masks, array $securityIdentities, $administrativeMode = false);
/**
* Whether the ACL has loaded ACEs for all of the passed security identities
@@ -102,5 +102,5 @@ function isGranted(array $masks, array $securityIdentities, $administrativeMode
* @param mixed $securityIdentities an implementation of SecurityIdentityInterface, or an array thereof
* @return Boolean
*/
- function isSidLoaded($securityIdentities);
+ public function isSidLoaded($securityIdentities);
}
View
6 Acl/Model/AclProviderInterface.php
@@ -25,7 +25,7 @@
* @param Boolean $directChildrenOnly
* @return array returns an array of child 'ObjectIdentity's
*/
- function findChildren(ObjectIdentityInterface $parentOid, $directChildrenOnly = false);
+ public function findChildren(ObjectIdentityInterface $parentOid, $directChildrenOnly = false);
/**
* Returns the ACL that belongs to the given object identity
@@ -35,7 +35,7 @@ function findChildren(ObjectIdentityInterface $parentOid, $directChildrenOnly =
* @param array $sids
* @return AclInterface
*/
- function findAcl(ObjectIdentityInterface $oid, array $sids = array());
+ public function findAcl(ObjectIdentityInterface $oid, array $sids = array());
/**
* Returns the ACLs that belong to the given object identities
@@ -45,5 +45,5 @@ function findAcl(ObjectIdentityInterface $oid, array $sids = array());
* @param array $sids an array of SecurityIdentityInterface implementations
* @return \SplObjectStorage mapping the passed object identities to ACLs
*/
- function findAcls(array $oids, array $sids = array());
+ public function findAcls(array $oids, array $sids = array());
}
View
2  Acl/Model/AuditLoggerInterface.php
@@ -26,5 +26,5 @@
* @param EntryInterface $ace
* @return void
*/
- function logIfNeeded($granted, EntryInterface $ace);
+ public function logIfNeeded($granted, EntryInterface $ace);
}
View
8 Acl/Model/AuditableAclInterface.php
@@ -26,7 +26,7 @@
* @param Boolean $auditFailure
* @return void
*/
- function updateClassAuditing($index, $auditSuccess, $auditFailure);
+ public function updateClassAuditing($index, $auditSuccess, $auditFailure);
/**
* Updates auditing for class-field-based ACE
@@ -38,7 +38,7 @@ function updateClassAuditing($index, $auditSuccess, $auditFailure);
* @return void
*/
- function updateClassFieldAuditing($index, $field, $auditSuccess, $auditFailure);
+ public function updateClassFieldAuditing($index, $field, $auditSuccess, $auditFailure);
/**
* Updates auditing for object-based ACE
@@ -48,7 +48,7 @@ function updateClassFieldAuditing($index, $field, $auditSuccess, $auditFailure);
* @param Boolean $auditFailure
* @return void
*/
- function updateObjectAuditing($index, $auditSuccess, $auditFailure);
+ public function updateObjectAuditing($index, $auditSuccess, $auditFailure);
/**
* Updates auditing for object-field-based ACE
@@ -59,5 +59,5 @@ function updateObjectAuditing($index, $auditSuccess, $auditFailure);
* @param Boolean $auditFailure
* @return void
*/
- function updateObjectFieldAuditing($index, $field, $auditSuccess, $auditFailure);
+ public function updateObjectFieldAuditing($index, $field, $auditSuccess, $auditFailure);
}
View
4 Acl/Model/AuditableEntryInterface.php
@@ -23,12 +23,12 @@
*
* @return Boolean
*/
- function isAuditFailure();
+ public function isAuditFailure();
/**
* Whether auditing for successful denies is turned on
*
* @return Boolean
*/
- function isAuditSuccess();
+ public function isAuditSuccess();
}
View
2  Acl/Model/DomainObjectInterface.php
@@ -25,5 +25,5 @@
*
* @return string
*/
- function getObjectIdentifier();
+ public function getObjectIdentifier();
}
View
12 Acl/Model/EntryInterface.php
@@ -26,40 +26,40 @@
*
* @return AclInterface
*/
- function getAcl();
+ public function getAcl();
/**
* The primary key of this ACE
*
* @return integer
*/
- function getId();
+ public function getId();
/**
* The permission mask of this ACE
*
* @return integer
*/
- function getMask();
+ public function getMask();
/**
* The security identity associated with this ACE
*
* @return SecurityIdentityInterface
*/
- function getSecurityIdentity();
+ public function getSecurityIdentity();
/**
* The strategy for comparing masks
*
* @return string
*/
- function getStrategy();
+ public function getStrategy();
/**
* Returns whether this ACE is granting, or denying
*
* @return Boolean
*/
- function isGranting();
+ public function isGranting();
}
View
2  Acl/Model/FieldEntryInterface.php
@@ -23,5 +23,5 @@
*
* @return string
*/
- function getField();
+ public function getField();
}
View
30 Acl/Model/MutableAclInterface.php
@@ -27,7 +27,7 @@
* @param integer $index
* @return void
*/
- function deleteClassAce($index);
+ public function deleteClassAce($index);
/**
* Deletes a class-field-based ACE
@@ -36,7 +36,7 @@ function deleteClassAce($index);
* @param string $field
* @return void
*/
- function deleteClassFieldAce($index, $field);
+ public function deleteClassFieldAce($index, $field);
/**
* Deletes an object-based ACE
@@ -44,7 +44,7 @@ function deleteClassFieldAce($index, $field);
* @param integer $index
* @return void
*/
- function deleteObjectAce($index);
+ public function deleteObjectAce($index);
/**
* Deletes an object-field-based ACE
@@ -53,14 +53,14 @@ function deleteObjectAce($index);
* @param string $field
* @return void
*/
- function deleteObjectFieldAce($index, $field);
+ public function deleteObjectFieldAce($index, $field);
/**
* Returns the primary key of this ACL
*
* @return integer
*/
- function getId();
+ public function getId();
/**
* Inserts a class-based ACE
@@ -72,7 +72,7 @@ function getId();
* @param string $strategy
* @return void
*/
- function insertClassAce(SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null);
+ public function insertClassAce(SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null);
/**
* Inserts a class-field-based ACE
@@ -85,7 +85,7 @@ function insertClassAce(SecurityIdentityInterface $sid, $mask, $index = 0, $gran
* @param string $strategy
* @return void
*/
- function insertClassFieldAce($field, SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null);
+ public function insertClassFieldAce($field, SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null);
/**
* Inserts an object-based ACE
@@ -97,7 +97,7 @@ function insertClassFieldAce($field, SecurityIdentityInterface $sid, $mask, $ind
* @param string $strategy
* @return void
*/
- function insertObjectAce(SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null);
+ public function insertObjectAce(SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null);
/**
* Inserts an object-field-based ACE
@@ -110,7 +110,7 @@ function insertObjectAce(SecurityIdentityInterface $sid, $mask, $index = 0, $gra
* @param string $strategy
* @return void
*/
- function insertObjectFieldAce($field, SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null);
+ public function insertObjectFieldAce($field, SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null);
/**
* Sets whether entries are inherited
@@ -118,7 +118,7 @@ function insertObjectFieldAce($field, SecurityIdentityInterface $sid, $mask, $in
* @param Boolean $boolean
* @return void
*/
- function setEntriesInheriting($boolean);
+ public function setEntriesInheriting($boolean);
/**
* Sets the parent ACL
@@ -126,7 +126,7 @@ function setEntriesInheriting($boolean);
* @param AclInterface $acl
* @return void
*/
- function setParentAcl(AclInterface $acl);
+ public function setParentAcl(AclInterface $acl);
/**
* Updates a class-based ACE
@@ -136,7 +136,7 @@ function setParentAcl(AclInterface $acl);
* @param string $strategy if null the strategy should not be changed
* @return void
*/
- function updateClassAce($index, $mask, $strategy = null);
+ public function updateClassAce($index, $mask, $strategy = null);
/**
* Updates a class-field-based ACE
@@ -147,7 +147,7 @@ function updateClassAce($index, $mask, $strategy = null);
* @param string $strategy if null the strategy should not be changed
* @return void
*/
- function updateClassFieldAce($index, $field, $mask, $strategy = null);
+ public function updateClassFieldAce($index, $field, $mask, $strategy = null);
/**
* Updates an object-based ACE
@@ -157,7 +157,7 @@ function updateClassFieldAce($index, $field, $mask, $strategy = null);
* @param string $strategy if null the strategy should not be changed
* @return void
*/
- function updateObjectAce($index, $mask, $strategy = null);
+ public function updateObjectAce($index, $mask, $strategy = null);
/**
* Updates an object-field-based ACE
@@ -168,5 +168,5 @@ function updateObjectAce($index, $mask, $strategy = null);
* @param string $strategy if null the strategy should not be changed
* @return void
*/
- function updateObjectFieldAce($index, $field, $mask, $strategy = null);
+ public function updateObjectFieldAce($index, $field, $mask, $strategy = null);
}
View
6 Acl/Model/MutableAclProviderInterface.php
@@ -26,7 +26,7 @@
* @param ObjectIdentityInterface $oid
* @return MutableAclInterface
*/
- function createAcl(ObjectIdentityInterface $oid);
+ public function createAcl(ObjectIdentityInterface $oid);
/**
* Deletes the ACL for a given object identity.
@@ -37,7 +37,7 @@ function createAcl(ObjectIdentityInterface $oid);
* @param ObjectIdentityInterface $oid
* @return void
*/
- function deleteAcl(ObjectIdentityInterface $oid);
+ public function deleteAcl(ObjectIdentityInterface $oid);
/**
* Persists any changes which were made to the ACL, or any associated
@@ -48,5 +48,5 @@ function deleteAcl(ObjectIdentityInterface $oid);
* @param MutableAclInterface $acl
* @return void
*/
- function updateAcl(MutableAclInterface $acl);
+ public function updateAcl(MutableAclInterface $acl);
}
View
6 Acl/Model/ObjectIdentityInterface.php
@@ -30,7 +30,7 @@
* @param ObjectIdentityInterface $identity
* @return Boolean
*/
- function equals(ObjectIdentityInterface $identity);
+ public function equals(ObjectIdentityInterface $identity);
/**
* Obtains a unique identifier for this object. The identifier must not be
@@ -38,12 +38,12 @@ function equals(ObjectIdentityInterface $identity);
*
* @return string cannot return null
*/
- function getIdentifier();
+ public function getIdentifier();
/**
* Returns a type for the domain object. Typically, this is the PHP class name.
*
* @return string cannot return null
*/
- function getType();
+ public function getType();
}
View
2  Acl/Model/ObjectIdentityRetrievalStrategyInterface.php
@@ -24,5 +24,5 @@
* @param object $domainObject
* @return ObjectIdentityInterface
*/
- function getObjectIdentity($domainObject);
+ public function getObjectIdentity($domainObject);
}
View
4 Acl/Model/PermissionGrantingStrategyInterface.php
@@ -27,7 +27,7 @@
* @param Boolean $administrativeMode
* @return Boolean
*/
- function isGranted(AclInterface $acl, array $masks, array $sids, $administrativeMode = false);
+ public function isGranted(AclInterface $acl, array $masks, array $sids, $administrativeMode = false);
/**
* Determines whether access to a domain object's field is to be granted
@@ -40,5 +40,5 @@ function isGranted(AclInterface $acl, array $masks, array $sids, $administrative
*
* @return Boolean
*/
- function isFieldGranted(AclInterface $acl, $field, array $masks, array $sids, $administrativeMode = false);
+ public function isFieldGranted(AclInterface $acl, $field, array $masks, array $sids, $administrativeMode = false);
}
View
2  Acl/Model/SecurityIdentityInterface.php
@@ -27,5 +27,5 @@
* @param SecurityIdentityInterface $identity
* @return void
*/
- function equals(SecurityIdentityInterface $identity);
+ public function equals(SecurityIdentityInterface $identity);
}
View
2  Acl/Model/SecurityIdentityRetrievalStrategyInterface.php
@@ -30,5 +30,5 @@
* @param TokenInterface $token
* @return array of SecurityIdentityInterface implementations
*/
- function getSecurityIdentities(TokenInterface $token);
+ public function getSecurityIdentities(TokenInterface $token);
}
View
2  Acl/Permission/MaskBuilder.php
@@ -176,7 +176,7 @@ public function reset()
* @throws \RuntimeException
* @return string
*/
- static public function getCode($mask)
+ public static function getCode($mask)
{
if (!is_int($mask)) {
throw new \InvalidArgumentException('$mask must be an integer.');
View
4 Acl/Permission/PermissionMapInterface.php
@@ -28,7 +28,7 @@
* @param object $object
* @return array may return null if permission/object combination is not supported
*/
- function getMasks($permission, $object);
+ public function getMasks($permission, $object);
/**
* Whether this map contains the given permission
@@ -36,5 +36,5 @@ function getMasks($permission, $object);
* @param string $permission
* @return Boolean
*/
- function contains($permission);
+ public function contains($permission);
}
View
1  Acl/Resources/bin/generateSql.php
@@ -25,7 +25,6 @@
));
$loader->register();
-
$schema = new Schema(array(
'class_table_name' => 'acl_classes',
'entry_table_name' => 'acl_entries',
View
2  Core/Authentication/AuthenticationManagerInterface.php
@@ -31,5 +31,5 @@
*
* @throws AuthenticationException if the authentication fails
*/
- function authenticate(TokenInterface $token);
+ public function authenticate(TokenInterface $token);
}
View
6 Core/Authentication/AuthenticationTrustResolverInterface.php
@@ -30,7 +30,7 @@
*
* @return Boolean
*/
- function isAnonymous(TokenInterface $token = null);
+ public function isAnonymous(TokenInterface $token = null);
/**
* Resolves whether the passed token implementation is authenticated
@@ -40,7 +40,7 @@ function isAnonymous(TokenInterface $token = null);
*
* @return Boolean
*/
- function isRememberMe(TokenInterface $token = null);
+ public function isRememberMe(TokenInterface $token = null);
/**
* Resolves whether the passed token implementation is fully authenticated.
@@ -49,5 +49,5 @@ function isRememberMe(TokenInterface $token = null);
*
* @return Boolean
*/
- function isFullFledged(TokenInterface $token = null);
+ public function isFullFledged(TokenInterface $token = null);
}
View
10 Core/Authentication/RememberMe/PersistentTokenInterface.php
@@ -23,29 +23,29 @@
* Returns the class of the user
* @return string
*/
- function getClass();
+ public function getClass();
/**
* Returns the username
* @return string
*/
- function getUsername();
+ public function getUsername();
/**
* Returns the series
* @return string
*/
- function getSeries();
+ public function getSeries();
/**
* Returns the token value
* @return string
*/
- function getTokenValue();
+ public function getTokenValue();
/**
* Returns the last time the cookie was used
* @return \DateTime
*/
- function getLastUsed();
+ public function getLastUsed();
}
View
8 Core/Authentication/RememberMe/TokenProviderInterface.php
@@ -27,14 +27,14 @@
*
* @return PersistentTokenInterface
*/
- function loadTokenBySeries($series);
+ public function loadTokenBySeries($series);
/**
* Deletes all tokens belonging to series.
*
* @param string $series
*/
- function deleteTokenBySeries($series);
+ public function deleteTokenBySeries($series);
/**
* Updates the token according to this data.
@@ -43,12 +43,12 @@ function deleteTokenBySeries($series);
* @param string $tokenValue
* @param DateTime $lastUsed
*/
- function updateToken($series, $tokenValue, \DateTime $lastUsed);
+ public function updateToken($series, $tokenValue, \DateTime $lastUsed);
/**
* Creates a new token.
*
* @param PersistentTokenInterface $token
*/
- function createNewToken(PersistentTokenInterface $token);
+ public function createNewToken(PersistentTokenInterface $token);
}
View
28 Core/Authentication/Token/TokenInterface.php
@@ -26,21 +26,21 @@
*
* @return string
*/
- function __toString();
+ public function __toString();
/**
* Returns the user roles.
*
* @return Role[] An array of Role instances.
*/
- function getRoles();
+ public function getRoles();
/**
* Returns the user credentials.
*
* @return mixed The user credentials
*/
- function getCredentials();
+ public function getCredentials();
/**
* Returns a user representation.
@@ -48,54 +48,54 @@ function getCredentials();
* @return mixed either returns an object which implements __toString(), or
* a primitive string is returned.
*/
- function getUser();
+ public function getUser();
/**
* Sets a user.
*
* @param mixed $user
*/
- function setUser($user);
+ public function setUser($user);
/**
* Returns the username.
*
* @return string
*/
- function getUsername();
+ public function getUsername();
/**
* Returns whether the user is authenticated or not.
*
* @return Boolean true if the token has been authenticated, false otherwise
*/
- function isAuthenticated();
+ public function isAuthenticated();
/**
* Sets the authenticated flag.
*
* @param Boolean $isAuthenticated The authenticated flag
*/
- function setAuthenticated($isAuthenticated);
+ public function setAuthenticated($isAuthenticated);
/**
* Removes sensitive information from the token.
*/
- function eraseCredentials();
+ public function eraseCredentials();
/**
* Returns the token attributes.
*
* @return array The token attributes
*/
- function getAttributes();
+ public function getAttributes();
/**
* Sets the token attributes.
*
* @param array $attributes The token attributes
*/
- function setAttributes(array $attributes);
+ public function setAttributes(array $attributes);
/**
* Returns true if the attribute exists.
@@ -104,7 +104,7 @@ function setAttributes(array $attributes);
*
* @return Boolean true if the attribute exists, false otherwise
*/
- function hasAttribute($name);
+ public function hasAttribute($name);
/**
* Returns an attribute value.
@@ -115,7 +115,7 @@ function hasAttribute($name);
*
* @throws \InvalidArgumentException When attribute doesn't exist for this token
*/
- function getAttribute($name);
+ public function getAttribute($name);
/**
* Sets an attribute.
@@ -123,5 +123,5 @@ function getAttribute($name);
* @param string $name The attribute name
* @param mixed $value The attribute value
*/
- function setAttribute($name, $value);
+ public function setAttribute($name, $value);
}
View
6 Core/Authorization/AccessDecisionManagerInterface.php
@@ -29,7 +29,7 @@
*
* @return Boolean true if the access is granted, false otherwise
*/
- function decide(TokenInterface $token, array $attributes, $object = null);
+ public function decide(TokenInterface $token, array $attributes, $object = null);
/**
* Checks if the access decision manager supports the given attribute.
@@ -38,7 +38,7 @@ function decide(TokenInterface $token, array $attributes, $object = null);
*
* @return Boolean true if this decision manager supports the attribute, false otherwise
*/
- function supportsAttribute($attribute);
+ public function supportsAttribute($attribute);
/**
* Checks if the access decision manager supports the given class.
@@ -47,5 +47,5 @@ function supportsAttribute($attribute);
*
* @return true if this decision manager can process the class
*/
- function supportsClass($class);
+ public function supportsClass($class);
}
View
6 Core/Authorization/Voter/VoterInterface.php
@@ -31,7 +31,7 @@
*
* @return Boolean true if this Voter supports the attribute, false otherwise
*/
- function supportsAttribute($attribute);
+ public function supportsAttribute($attribute);
/**
* Checks if the voter supports the given class.
@@ -40,7 +40,7 @@ function supportsAttribute($attribute);
*
* @return true if this Voter can process the class
*/
- function supportsClass($class);
+ public function supportsClass($class);
/**
* Returns the vote for the given parameters.
@@ -54,5 +54,5 @@ function supportsClass($class);
*
* @return integer either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
*/
- function vote(TokenInterface $token, $object, array $attributes);
+ public function vote(TokenInterface $token, $object, array $attributes);
}
View
2  Core/Encoder/EncoderFactoryInterface.php
@@ -27,5 +27,5 @@
*
* @return PasswordEncoderInterface never null
*/
- function getEncoder(UserInterface $user);
+ public function getEncoder(UserInterface $user);
}
View
4 Core/Encoder/PasswordEncoderInterface.php
@@ -26,7 +26,7 @@
*
* @return string The encoded password
*/
- function encodePassword($raw, $salt);
+ public function encodePassword($raw, $salt);
/**
* Checks a raw password against an encoded password.
@@ -37,5 +37,5 @@ function encodePassword($raw, $salt);
*
* @return Boolean true if the password is valid, false otherwise
*/
- function isPasswordValid($encoded, $raw, $salt);
+ public function isPasswordValid($encoded, $raw, $salt);
}
View
2  Core/Role/RoleHierarchyInterface.php
@@ -28,5 +28,5 @@
*
* @return array An array of all reachable roles
*/
- function getReachableRoles(array $roles);
+ public function getReachableRoles(array $roles);
}
View
2  Core/Role/RoleInterface.php
@@ -31,5 +31,5 @@
*
* @return string|null A string representation of the role, or null
*/
- function getRole();
+ public function getRole();
}
View
2  Core/SecurityContext.php
@@ -55,7 +55,7 @@ public function __construct(AuthenticationManagerInterface $authenticationManage
*
* @return Boolean
*/
- public final function isGranted($attributes, $object = null)
+ final public function isGranted($attributes, $object = null)
{
if (null === $this->token) {
throw new AuthenticationCredentialsNotFoundException('The security context contains no authentication token. One possible reason may be that there is no firewall configured for this URL.');
View
6 Core/SecurityContextInterface.php
@@ -29,7 +29,7 @@
*
* @return TokenInterface|null A TokenInterface instance or null if no authentication information is available
*/
- function getToken();
+ public function getToken();
/**
* Sets the authentication token.
@@ -38,7 +38,7 @@ function getToken();
*
* @return void
*/
- function setToken(TokenInterface $token = null);
+ public function setToken(TokenInterface $token = null);
/**
* Checks if the attributes are granted against the current authentication token and optionally supplied object.
@@ -48,5 +48,5 @@ function setToken(TokenInterface $token = null);
*
* @return Boolean
*/
- function isGranted($attributes, $object = null);
+ public function isGranted($attributes, $object = null);
}
View
8 Core/User/AdvancedUserInterface.php
@@ -47,7 +47,7 @@
*
* @see AccountExpiredException
*/
- function isAccountNonExpired();
+ public function isAccountNonExpired();
/**
* Checks whether the user is locked.
@@ -59,7 +59,7 @@ function isAccountNonExpired();
*
* @see LockedException
*/
- function isAccountNonLocked();
+ public function isAccountNonLocked();
/**
* Checks whether the user's credentials (password) has expired.
@@ -71,7 +71,7 @@ function isAccountNonLocked();
*
* @see CredentialsExpiredException
*/
- function isCredentialsNonExpired();
+ public function isCredentialsNonExpired();
/**
* Checks whether the user is enabled.
@@ -83,5 +83,5 @@ function isCredentialsNonExpired();
*
* @see DisabledException
*/
- function isEnabled();
+ public function isEnabled();
}
View
4 Core/User/UserCheckerInterface.php
@@ -25,12 +25,12 @@
*
* @param UserInterface $user a UserInterface instance
*/
- function checkPreAuth(UserInterface $user);
+ public function checkPreAuth(UserInterface $user);
/**
* Checks the user account after authentication.
*
* @param UserInterface $user a UserInterface instance
*/
- function checkPostAuth(UserInterface $user);
+ public function checkPostAuth(UserInterface $user);
}
View
12 Core/User/UserInterface.php
@@ -47,7 +47,7 @@
*
* @return Role[] The user roles
*/
- function getRoles();
+ public function getRoles();
/**
* Returns the password used to authenticate the user.
@@ -57,7 +57,7 @@ function getRoles();
*
* @return string The password
*/
- function getPassword();
+ public function getPassword();
/**
* Returns the salt that was originally used to encode the password.
@@ -66,14 +66,14 @@ function getPassword();
*
* @return string The salt
*/
- function getSalt();
+ public function getSalt();
/**
* Returns the username used to authenticate the user.
*
* @return string The username
*/
- function getUsername();
+ public function getUsername();
/**
* Removes sensitive data from the user.
@@ -83,7 +83,7 @@ function getUsername();
*
* @return void
*/
- function eraseCredentials();
+ public function eraseCredentials();
/**
* Returns whether or not the given user is equivalent to *this* user.
@@ -98,5 +98,5 @@ function eraseCredentials();
*
* @return Boolean
*/
- function equals(UserInterface $user);
+ public function equals(UserInterface $user);
}
View
6 Core/User/UserProviderInterface.php
@@ -48,7 +48,7 @@
* @throws UsernameNotFoundException if the user is not found
*
*/
- function loadUserByUsername($username);
+ public function loadUserByUsername($username);
/**
* Refreshes the user for the account interface.
@@ -63,7 +63,7 @@ function loadUserByUsername($username);
*
* @throws UnsupportedUserException if the account is not supported
*/
- function refreshUser(UserInterface $user);
+ public function refreshUser(UserInterface $user);
/**
* Whether this provider supports the given user class
@@ -72,5 +72,5 @@ function refreshUser(UserInterface $user);
*
* @return Boolean
*/
- function supportsClass($class);
+ public function supportsClass($class);
}
View
2  Http/Authentication/AuthenticationFailureHandlerInterface.php
@@ -35,5 +35,5 @@
*
* @return Response the response to return
*/
- function onAuthenticationFailure(Request $request, AuthenticationException $exception);
+ public function onAuthenticationFailure(Request $request, AuthenticationException $exception);
}
View
2  Http/Authentication/AuthenticationSuccessHandlerInterface.php
@@ -35,5 +35,5 @@
*
* @return Response the response to return
*/
- function onAuthenticationSuccess(Request $request, TokenInterface $token);
+ public function onAuthenticationSuccess(Request $request, TokenInterface $token);
}
View
2  Http/Authorization/AccessDeniedHandlerInterface.php
@@ -30,5 +30,5 @@
*
* @return Response may return null
*/
- function handle(Request $request, AccessDeniedException $accessDeniedException);
+ public function handle(Request $request, AccessDeniedException $accessDeniedException);
}
View
2  Http/EntryPoint/AuthenticationEntryPointInterface.php
@@ -30,5 +30,5 @@
*
* @return Response
*/
- function start(Request $request, AuthenticationException $authException = null);
+ public function start(Request $request, AuthenticationException $authException = null);
}
View
2  Http/Firewall/AbstractAuthenticationListener.php
@@ -119,7 +119,7 @@ public function setRememberMeServices(RememberMeServicesInterface $rememberMeSer
*
* @param GetResponseEvent $event A GetResponseEvent instance
*/
- public final function handle(GetResponseEvent $event)
+ final public function handle(GetResponseEvent $event)
{
$request = $event->getRequest();
View
2  Http/Firewall/AbstractPreAuthenticatedListener.php
@@ -51,7 +51,7 @@ public function __construct(SecurityContextInterface $securityContext, Authentic
*
* @param GetResponseEvent $event A GetResponseEvent instance
*/
- public final function handle(GetResponseEvent $event)
+ final public function handle(GetResponseEvent $event)
{
$request = $event->getRequest();
View
2  Http/Firewall/ListenerInterface.php
@@ -25,5 +25,5 @@
*
* @param GetResponseEvent $event
*/
- function handle(GetResponseEvent $event);
+ public function handle(GetResponseEvent $event);
}
View
2  Http/FirewallMapInterface.php
@@ -34,5 +34,5 @@
*
* @return array of the format array(array(AuthenticationListener), ExceptionListener)
*/
- function getListeners(Request $request);
+ public function getListeners(Request $request);
}
View
2  Http/Logout/LogoutHandlerInterface.php
@@ -33,5 +33,5 @@
*
* @return void
*/
- function logout(Request $request, Response $response, TokenInterface $token);
+ public function logout(Request $request, Response $response, TokenInterface $token);
}
View
2  Http/Logout/LogoutSuccessHandlerInterface.php
@@ -33,5 +33,5 @@
*
* @return Response never null
*/
- function onLogoutSuccess(Request $request);
+ public function onLogoutSuccess(Request $request);
}
View
8 Http/RememberMe/AbstractRememberMeServices.php
@@ -91,7 +91,7 @@ public function getKey()
*
* @return TokenInterface
*/
- public final function autoLogin(Request $request)
+ final public function autoLogin(Request $request)
{
if (null === $cookie = $request->cookies->get($this->options['name'])) {
return;
@@ -160,7 +160,7 @@ public function logout(Request $request, Response $response, TokenInterface $tok
*
* @return void
*/
- public final function loginFail(Request $request)
+ final public function loginFail(Request $request)
{
$this->cancelCookie($request);
$this->onLoginFail($request);
@@ -176,7 +176,7 @@ public function logout(Request $request, Response $response, TokenInterface $tok
*
* @return void
*/
- public final function loginSuccess(Request $request, Response $response, TokenInterface $token)
+ final public function loginSuccess(Request $request, Response $response, TokenInterface $token)
{
if (!$token->getUser() instanceof UserInterface) {
if (null !== $this->logger) {
@@ -229,7 +229,7 @@ protected function onLoginFail(Request $request)
*/
abstract protected function onLoginSuccess(Request $request, Response $response, TokenInterface $token);
- protected final function getUserProvider($class)
+ final protected function getUserProvider($class)
{
foreach ($this->userProviders as $provider) {
if ($provider->supportsClass($class)) {
View
6 Http/RememberMe/RememberMeServicesInterface.php
@@ -51,7 +51,7 @@
*
* @return TokenInterface
*/
- function autoLogin(Request $request);
+ public function autoLogin(Request $request);
/**
* Called whenever an interactive authentication attempt was made, but the
@@ -63,7 +63,7 @@ function autoLogin(Request $request);
*
* @return void
*/
- function loginFail(Request $request);
+ public function loginFail(Request $request);
/**
* Called whenever an interactive authentication attempt is successful
@@ -82,5 +82,5 @@ function loginFail(Request $request);
*
* @return void
*/
- function loginSuccess(Request $request, Response $response, TokenInterface $token);
+ public function loginSuccess(Request $request, Response $response, TokenInterface $token);
}
View
2  Http/Session/SessionAuthenticationStrategyInterface.php
@@ -35,5 +35,5 @@
*
* @return void
*/
- function onAuthentication(Request $request, TokenInterface $token);
+ public function onAuthentication(Request $request, TokenInterface $token);
}
Please sign in to comment.
Something went wrong with that request. Please try again.