Skip to content

Commit

Permalink
Remove $key in LocalComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
sugeng-sulistiyawan committed May 12, 2023
1 parent 05f9b0b commit aae6de4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,9 @@ return [
'fs' => [
'class' => \diecoding\flysystem\LocalComponent::class,
'path' => dirname(dirname(__DIR__)) . '/storage', // or you can use @alias
'key' => 'my-key',
'secret' => 'my-secret',
'action' => '/site/file', // action for get url file
'prefix' => '',
// 'cipherAlgo' => 'aes-128-cbc',
],
],
];
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "diecoding/yii2-flysystem",
"description": "The League Flysystem for local and remote filesystems library for Yii2",
"version": "v1.2.2",
"version": "v1.3.0",
"type": "library",
"keywords": [
"yii2",
Expand Down
9 changes: 0 additions & 9 deletions src/LocalComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* 'fs' => [
* 'class' => \diecoding\flysystem\LocalComponent::class,
* 'path' => dirname(dirname(__DIR__)) . '/storage', // or you can use @alias
* 'key' => 'my-key',
* 'secret' => 'my-secret',
* 'action' => '/site/file',
* 'prefix' => '',
Expand All @@ -42,11 +41,6 @@ class LocalComponent extends AbstractComponent
*/
public $secret;

/**
* @var string
*/
public $key;

/**
* @var string
*/
Expand All @@ -63,9 +57,6 @@ public function init()
if (empty($this->secret)) {
throw new InvalidConfigException('The "secret" property must be set.');
}
if (empty($this->key)) {
throw new InvalidConfigException('The "key" property must be set.');
}

$this->initEncrypter($this->secret);

Expand Down

0 comments on commit aae6de4

Please sign in to comment.