-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from ARCANEDEV/update-package
Updating the package
- Loading branch information
Showing
6 changed files
with
34 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
<?php namespace Arcanedev\Hasher; | ||
|
||
use Arcanedev\Support\PackageServiceProvider as ServiceProvider; | ||
use Arcanedev\Support\Providers\PackageServiceProvider as ServiceProvider; | ||
use Illuminate\Contracts\Support\DeferrableProvider; | ||
|
||
/** | ||
* Class HasherServiceProvider | ||
* | ||
* @package Arcanedev\Hasher | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class HasherServiceProvider extends ServiceProvider | ||
class HasherServiceProvider extends ServiceProvider implements DeferrableProvider | ||
{ | ||
/* ----------------------------------------------------------------- | ||
| Properties | ||
|
@@ -22,13 +23,6 @@ class HasherServiceProvider extends ServiceProvider | |
*/ | ||
protected $package = 'hasher'; | ||
|
||
/** | ||
* Indicates if loading of the provider is deferred. | ||
* | ||
* @var bool | ||
*/ | ||
protected $defer = true; | ||
|
||
/* ----------------------------------------------------------------- | ||
| Main Methods | ||
| ----------------------------------------------------------------- | ||
|
@@ -37,25 +31,21 @@ class HasherServiceProvider extends ServiceProvider | |
/** | ||
* Register the service provider. | ||
*/ | ||
public function register() | ||
public function register(): void | ||
{ | ||
parent::register(); | ||
|
||
$this->registerConfig(); | ||
|
||
// Services | ||
$this->singleton(Contracts\HashManager::class, function ($app) { | ||
return new HashManager($app); | ||
}); | ||
$this->singleton(Contracts\HashManager::class, HashManager::class); | ||
} | ||
|
||
/** | ||
* Boot the service provider. | ||
*/ | ||
public function boot() | ||
public function boot(): void | ||
{ | ||
parent::boot(); | ||
|
||
$this->publishConfig(); | ||
} | ||
|
||
|
@@ -64,7 +54,7 @@ public function boot() | |
* | ||
* @return array | ||
*/ | ||
public function provides() | ||
public function provides(): array | ||
{ | ||
return [ | ||
Contracts\HashManager::class, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters