| @@ 39-49 (lines=11) @@ | ||
| 36 | } |
|
| 37 | } |
|
| 38 | ||
| 39 | public function enableLegacy(string $legacyKey) |
|
| 40 | { |
|
| 41 | $this->enableLegacy = true; |
|
| 42 | $this->legacyKey = $legacyKey; |
|
| 43 | ||
| 44 | $key = new Key($legacyKey); |
|
| 45 | $this->keyContainer->addKey($key); |
|
| 46 | $this->keyContainer->tagKey('legacy', $key->getIdentifier()->toString()); |
|
| 47 | ||
| 48 | return $this; |
|
| 49 | } |
|
| 50 | ||
| 51 | public function withKeyPath(string $keypath) |
|
| 52 | { |
|
| @@ 51-60 (lines=10) @@ | ||
| 48 | return $this; |
|
| 49 | } |
|
| 50 | ||
| 51 | public function withKeyPath(string $keypath) |
|
| 52 | { |
|
| 53 | $this->keyPath = $keypath; |
|
| 54 | ||
| 55 | $key = new Key($keypath); |
|
| 56 | $this->keyContainer->addKey($key); |
|
| 57 | $this->keyContainer->tagKey('default', $key->getIdentifier()->toString()); |
|
| 58 | ||
| 59 | return $this; |
|
| 60 | } |
|
| 61 | ||
| 62 | public function withKey(string $key, array $tags = []) |
|
| 63 | { |
|