summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Weaver <ryan@thatsquality.com>2015-09-26 14:10:49 -0400
committerRyan Weaver <ryan@thatsquality.com>2015-09-26 14:10:49 -0400
commit190749fd3d8e871393bab80170b759fc07018160 (patch)
tree2421e9cd9c9535ca61208ebf4f85ceb6e33d9a91
parent5c71d179238b5bc79faa3d72db56ff61b3aacbeb (diff)
downloadsymfony-security-190749fd3d8e871393bab80170b759fc07018160.zip
symfony-security-190749fd3d8e871393bab80170b759fc07018160.tar.gz
symfony-security-190749fd3d8e871393bab80170b759fc07018160.tar.bz2
Making GuardTokenInterface extend TokenInterface
This makes some of our type-hints more honest: i.e. where we look for a GuardTokenInterface, but really also expect it to implement TokenInterface.
-rw-r--r--Guard/Token/GuardTokenInterface.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Guard/Token/GuardTokenInterface.php b/Guard/Token/GuardTokenInterface.php
index f0db250..063ffd3 100644
--- a/Guard/Token/GuardTokenInterface.php
+++ b/Guard/Token/GuardTokenInterface.php
@@ -11,6 +11,8 @@
namespace Symfony\Component\Security\Guard\Token;
+use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
+
/**
* A marker interface that both guard tokens implement.
*
@@ -20,6 +22,6 @@ namespace Symfony\Component\Security\Guard\Token;
*
* @author Ryan Weaver <ryan@knpuniversity.com>
*/
-interface GuardTokenInterface
+interface GuardTokenInterface extends TokenInterface
{
}