diff --git a/README.md b/README.md index bf43cc0..3727491 100644 --- a/README.md +++ b/README.md @@ -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', ], ], ]; diff --git a/composer.json b/composer.json index faac45d..285d76e 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/LocalComponent.php b/src/LocalComponent.php index 3dd8e99..bfc808c 100644 --- a/src/LocalComponent.php +++ b/src/LocalComponent.php @@ -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' => '', @@ -42,11 +41,6 @@ class LocalComponent extends AbstractComponent */ public $secret; - /** - * @var string - */ - public $key; - /** * @var string */ @@ -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);