-
Notifications
You must be signed in to change notification settings - Fork 51
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 #44 from spatie/v2
v2
- Loading branch information
Showing
16 changed files
with
218 additions
and
279 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- "dependencies" |
17 changes: 9 additions & 8 deletions
17
.github/workflows/php-cs-fixer.yml → ...b/workflows/fix-php-code-style-issues.yml
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# From v1 to v2 | ||
|
||
|
||
Breaking changes between v1 and v2 that you need to account for: | ||
- When passing the expiration time to `sign()` as an int, it will be interpreted as seconds instead of days. | ||
- the `default_expiration_time_in_days` has been renamed to `default_expiration_time_in_seconds` |
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,24 +1,22 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
* This string is used the to generate a signature. You should | ||
* keep this value secret. | ||
*/ | ||
'signatureKey' => env('APP_KEY'), | ||
'signature_key' => env('URL_SIGNER_SIGNATURE_KEY'), | ||
|
||
/* | ||
* The default expiration time of a URL in days. | ||
* The default expiration time of a URL in seconds. | ||
*/ | ||
'default_expiration_time_in_days' => 1, | ||
'default_expiration_time_in_seconds' => 60 * 60 * 24, | ||
|
||
/* | ||
* These strings are used a parameter names in a signed url. | ||
*/ | ||
'parameters' => [ | ||
'expires' => 'expires', | ||
'expires' => 'expires', | ||
'signature' => 'signature', | ||
], | ||
|
||
]; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Spatie\UrlSigner\Laravel\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class UrlSigner extends Facade | ||
{ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return 'url-signer'; | ||
} | ||
} |
Oops, something went wrong.