From ae205d810b62dce5e3e11aef07358c11ded48c77 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Tue, 26 Oct 2021 21:07:43 +0100 Subject: Implement old --- public/store/index.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'public/store') diff --git a/public/store/index.php b/public/store/index.php index 5279e69..8bd0b7f 100644 --- a/public/store/index.php +++ b/public/store/index.php @@ -4,6 +4,7 @@ declare(strict_types=1); use DTS\Bookmark; use DTS\BookmarkRepository; +use DTS\Old; use DTS\Session; use DTS\Validator; @@ -20,6 +21,10 @@ if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') !== 'POST') { respondAndExit(405, 'Method Not Allowed'); } +$old = new Old($_REQUEST); + +$session->set('old', $old); + $validator = new Validator($_REQUEST); if ($validator->errors->count()) { -- cgit v1.2.3-13-gbd6f