1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

feat(Frontmatter): use Atomastic Components #478

This commit is contained in:
Awilum
2020-11-02 11:19:32 +03:00
parent cced8b01ca
commit f2c5765d7a

View File

@@ -9,7 +9,7 @@ declare(strict_types=1);
namespace Flextype\Support\Serializers;
use Flextype\Component\Arrays\Arrays;
use Atomastic\Arrays\Arrays;
use Atomastic\Strings\Strings;
use function array_slice;
@@ -68,7 +68,7 @@ class Frontmatter
{
if (isset($input['content'])) {
$content = $input['content'];
Arrays::delete($input, 'content');
$input = arrays($input)->delete('content')->toArray();
$matter = flextype('yaml')->encode($input);
} else {
$content = '';