summaryrefslogtreecommitdiffstats
path: root/Core/Encoder/EncoderAwareInterface.php
diff options
context:
space:
mode:
authortamirvs <tamirvs@gmail.com>2014-01-08 08:59:20 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2014-01-18 10:09:35 +0100
commit97a2eea43b4dd655c4852b2242ee7dc52e8df873 (patch)
tree02b368d5ea02a4021f8f6cae8c27993447fa410e /Core/Encoder/EncoderAwareInterface.php
parent243eb156955e2427dabd3e5b6ecb68dae09ebbea (diff)
downloadsymfony-security-97a2eea43b4dd655c4852b2242ee7dc52e8df873.zip
symfony-security-97a2eea43b4dd655c4852b2242ee7dc52e8df873.tar.gz
symfony-security-97a2eea43b4dd655c4852b2242ee7dc52e8df873.tar.bz2
[Security] Added named encoders to EncoderFactory
Diffstat (limited to 'Core/Encoder/EncoderAwareInterface.php')
-rw-r--r--Core/Encoder/EncoderAwareInterface.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/Core/Encoder/EncoderAwareInterface.php b/Core/Encoder/EncoderAwareInterface.php
new file mode 100644
index 0000000..22ae820
--- /dev/null
+++ b/Core/Encoder/EncoderAwareInterface.php
@@ -0,0 +1,28 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Security\Core\Encoder;
+
+/**
+ * @author Christophe Coevoet <stof@notk.org>
+ */
+interface EncoderAwareInterface
+{
+ /**
+ * Gets the name of the encoder used to encode the password.
+ *
+ * If the method returns null, the standard way to retrieve the encoder
+ * will be used instead.
+ *
+ * @return string
+ */
+ public function getEncoderName();
+}