diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-02-22 05:15:07 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2010-02-22 05:15:07 +0100 |
commit | f6c77b0848ca7e504cfba795d40b1c6c5bb8b343 (patch) | |
tree | 6ef522dc0f19bdaf798ee2e0448e2d2bdf0b531f /paste/config.php | |
parent | 3141d15061baea8f72d7eaeb84d83382eef42f63 (diff) | |
download | rafb-nopaste-f6c77b0848ca7e504cfba795d40b1c6c5bb8b343.tar.gz rafb-nopaste-f6c77b0848ca7e504cfba795d40b1c6c5bb8b343.tar.xz rafb-nopaste-f6c77b0848ca7e504cfba795d40b1c6c5bb8b343.zip |
added IdGeneratorEngine with Sha1Generator and ShortGenerator
Diffstat (limited to 'paste/config.php')
-rw-r--r-- | paste/config.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/paste/config.php b/paste/config.php index 727952c..bfc92f3 100644 --- a/paste/config.php +++ b/paste/config.php @@ -35,6 +35,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. require_once('include/storage/MysqlStorage.php'); require_once('include/storage/FileStorage.php'); +require_once('include/generator/Sha1Generator.php'); +require_once('include/generator/ShortGenerator.php'); $config = array( // This is the domain where this pastebin is running @@ -55,6 +57,11 @@ $config = array( 'storage' => NULL, // 'storage' => new MysqlStorage($host, $user, $password, $database, $table), // 'storage' => new FileStorage('results/'), + + // IdGeneratorEngine to generate ids + 'id_generator' => NULL, +// 'id_generator' => new Sha1Generator(), +// 'id_generator' => new ShortGenerator(), ); ?> |