From 79103cf9a7bed7d7898e213e4abf5bedd04a4612 Mon Sep 17 00:00:00 2001 From: 7r1n17y <7r1n17y7@gmail.com> Date: Sat, 8 Jul 2017 22:41:21 -0500 Subject: [PATCH] Add the class to the ext function through the extender class. --- src/Manage/Cookie.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Manage/Cookie.php b/src/Manage/Cookie.php index 6143e77..1335610 100644 --- a/src/Manage/Cookie.php +++ b/src/Manage/Cookie.php @@ -5,6 +5,7 @@ class Cookie extends Extender implements Handler { private $params = array(); public function __construct(array $options = array()) { $this->params = session_get_cookie_params(); + parent::add_ext(new HelperFunc($options)); } public function get(string $name = null, $default_return_val = null) { if (!is_string($name) || is_null($name)) {