Skip to content

Commit

Permalink
Updating the package to support Laravel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Mar 6, 2020
1 parent ccf5837 commit 7524fa7
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2019 | ARCANEDEV <arcanedev.maroc@gmail.com> - Hasher
Copyright (c) 2015-2020 | ARCANEDEV <arcanedev.maroc@gmail.com> - Hasher

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/Hasher/releas
* Flexible hash manager.
* Well documented &amp; IDE Friendly.
* Well tested with maximum code quality.
* Laravel `5.x | 6.x` are supported.
* Laravel `5.x | 6.x | 7.x` are supported.
* Made with :heart: &amp; :coffee:.

## Table of contents
Expand All @@ -49,7 +49,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
- [All Contributors][link-contributors]

[badge_license]: https://img.shields.io/packagist/l/arcanedev/hasher.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/For%20Laravel-5.x%20|%206.x-orange.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/For%20Laravel-5.x%20to%207.x-orange.svg?style=flat-square
[badge_build]: https://img.shields.io/github/workflow/status/ARCANEDEV/Hasher/run-tests?style=flat-square
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/Hasher.svg?style=flat-square
[badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/Hasher.svg?style=flat-square
Expand Down
2 changes: 1 addition & 1 deletion _docs/0-Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Hasher package provides a flexible hash manager for Laravel.
* Flexible hash manager.
* Well documented &amp; IDE Friendly.
* Well tested with maximum code quality.
* Laravel `5.0` to `6.0` are supported.
* Laravel `5.x | 6.x | 7.x` are supported.
* Made with :heart: &amp; :coffee:.

## Table of contents
Expand Down
3 changes: 3 additions & 0 deletions _docs/1-Installation-and-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

| Hasher | Laravel |
|:-------------------------------|:--------------------------------------------------------------------------------------------------------------------|
| ![Hasher v4.x][hasher_4_x] | ![Laravel v7.x][laravel_7_x] |
| ![Hasher v3.x][hasher_3_x] | ![Laravel v6.x][laravel_6_x] |
| ![Hasher v2.5.x][hasher_2_5_x] | ![Laravel v5.8][laravel_5_8] |
| ![Hasher v2.4.x][hasher_2_4_x] | ![Laravel v5.7][laravel_5_7] |
Expand All @@ -18,6 +19,7 @@
| ![Hasher v2.1.x][hasher_2_1_x] | ![Laravel v5.4][laravel_5_4] |
| ![Hasher v2.0.x][hasher_2_0_x] | ![Laravel v5.0][laravel_5_0] ![Laravel v5.1][laravel_5_1] ![Laravel v5.2][laravel_5_2] ![Laravel v5.3][laravel_5_3] |

[laravel_7_x]: https://img.shields.io/badge/v7.x-supported-brightgreen.svg?style=flat-square "Laravel v7.x"
[laravel_6_x]: https://img.shields.io/badge/v6.x-supported-brightgreen.svg?style=flat-square "Laravel v6.x"
[laravel_5_8]: https://img.shields.io/badge/v5.8-supported-brightgreen.svg?style=flat-square "Laravel v5.8"
[laravel_5_7]: https://img.shields.io/badge/v5.7-supported-brightgreen.svg?style=flat-square "Laravel v5.7"
Expand All @@ -29,6 +31,7 @@
[laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1"
[laravel_5_0]: https://img.shields.io/badge/v5.0-supported-brightgreen.svg?style=flat-square "Laravel v5.0"

[hasher_4_x]: https://img.shields.io/badge/version-4.*-blue.svg?style=flat-square "Hasher v4.*"
[hasher_3_x]: https://img.shields.io/badge/version-3.*-blue.svg?style=flat-square "Hasher v3.*"
[hasher_2_5_x]: https://img.shields.io/badge/version-2.5.*-blue.svg?style=flat-square "Hasher v2.5.*"
[hasher_2_4_x]: https://img.shields.io/badge/version-2.4.*-blue.svg?style=flat-square "Hasher v2.4.*"
Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@
"type": "library",
"license": "MIT",
"require": {
"php": ">=7.2.0",
"arcanedev/support": "^5.1.1",
"php": "^7.2.5",
"arcanedev/support": "^7.0",
"hashids/hashids": "^4.0"
},
"require-dev": {
"orchestra/testbench": "^4.0.0",
"phpunit/phpunit": "^8.0",
"phpunit/phpcov": "^6.0"
"orchestra/testbench": "^5.0",
"phpunit/phpunit": "^8.5|^9.0"
},
"autoload": {
"psr-4": {
Expand All @@ -42,5 +41,7 @@
"Arcanedev\\Hasher\\HasherServiceProvider"
]
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
9 changes: 6 additions & 3 deletions src/HasherServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Arcanedev\Hasher;

use Arcanedev\Hasher\Contracts\HashManager as HashManagerContract;
use Arcanedev\Support\Providers\PackageServiceProvider as ServiceProvider;
use Illuminate\Contracts\Support\DeferrableProvider;

Expand Down Expand Up @@ -41,15 +42,17 @@ public function register(): void

$this->registerConfig();

$this->singleton(Contracts\HashManager::class, HashManager::class);
$this->singleton(HashManagerContract::class, HashManager::class);
}

/**
* Boot the service provider.
*/
public function boot(): void
{
$this->publishConfig();
if ($this->app->runningInConsole()) {
$this->publishConfig();
}
}

/**
Expand All @@ -60,7 +63,7 @@ public function boot(): void
public function provides(): array
{
return [
Contracts\HashManager::class,
HashManagerContract::class,
];
}
}

0 comments on commit 7524fa7

Please sign in to comment.