1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 14:16:46 +02:00

feat(entries): use Atomastic Arrays for Entries #478

This commit is contained in:
Awilum
2020-10-17 18:13:30 +03:00
parent 010f1e4930
commit 7b78548080

View File

@@ -9,7 +9,7 @@ declare(strict_types=1);
namespace Flextype\Foundation\Entries;
use Flextype\Component\Arrays\Arrays;
use Atomastic\Arrays\Arrays;
use function array_merge;
use function collect_filter;
@@ -40,7 +40,7 @@ class Entries
*/
public function getStorage(string $key)
{
return Arrays::get($this->storage, $key);
return arrays($this->storage)->get($key);
}
/**
@@ -51,7 +51,7 @@ class Entries
*/
public function setStorage(string $key, $value)
{
Arrays::set($this->storage, $key, $value);
$this->storage = arrays($this->storage)->set($key, $value)->toArray();
}
/**