diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-04-09 17:33:22 +0200 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-04-09 17:33:22 +0200 |
commit | a28626a0824fd81433b55181361948fb40977aec (patch) | |
tree | fdfcd005c5c2fd23e1d7b74dddfac4f5a111fa1f /src/Hashing/HashServiceProvider.php | |
download | laravel-a28626a0824fd81433b55181361948fb40977aec.tar.gz laravel-a28626a0824fd81433b55181361948fb40977aec.tar.bz2 laravel-a28626a0824fd81433b55181361948fb40977aec.zip |
Initial commit
Diffstat (limited to 'src/Hashing/HashServiceProvider.php')
-rw-r--r-- | src/Hashing/HashServiceProvider.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Hashing/HashServiceProvider.php b/src/Hashing/HashServiceProvider.php new file mode 100644 index 0000000..e634de7 --- /dev/null +++ b/src/Hashing/HashServiceProvider.php @@ -0,0 +1,34 @@ +<?php namespace Spline\Cachet\Hashing;
+
+use Illuminate\Support\ServiceProvider;
+
+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->bindShared('hash', function() { return new SplineHasher; });
+ }
+
+ /**
+ * Get the services provided by the provider.
+ *
+ * @return array
+ */
+ public function provides()
+ {
+ return array('hash');
+ }
+
+}
|