%PDF- %PDF-
| Direktori : /proc/thread-self/root/www/varak.net/paste.varak.net-5.6/app/lib/hashing/ |
| Current File : //proc/thread-self/root/www/varak.net/paste.varak.net-5.6/app/lib/hashing/HashServiceProvider.php |
<?php namespace StickyNotes\Hashing;
/**
* Sticky Notes
*
* An open source lightweight pastebin application
*
* @package StickyNotes
* @author Sayak Banerjee
* @copyright (c) 2014 Sayak Banerjee <mail@sayakbanerjee.com>
* @license http://www.opensource.org/licenses/bsd-license.php
* @link http://sayakbanerjee.com/sticky-notes
* @since Version 1.0
* @filesource
*/
use Illuminate\Support\ServiceProvider;
/**
* HashServiceProvider Class
*
* This class utilizes the PHPassHasher for generating hashes.
*
* @package StickyNotes
* @subpackage Facades
* @author Sayak Banerjee
*/
class HashServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app['hash'] = $this->app->share(function() { return new PHPassHasher; });
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return array('hash');
}
}