diff --git a/src/ActionForward.php b/src/ActionForward.php index c538d10..45262e3 100644 --- a/src/ActionForward.php +++ b/src/ActionForward.php @@ -102,13 +102,6 @@ class ActionForward extends HashMap */ public $action; - /** - * TTFB. - * - * @var bool - */ - public $ttfb; - /** * ActionForward. * @@ -130,9 +123,6 @@ public function __construct($forward) // assign value $this->action = $forward[_ACTION]; - if (isset($forward[_TTFB])) { - $this->ttfb = $forward[_TTFB]; - } } /** @@ -147,7 +137,6 @@ function () { return [ 'name' => $this->name, 'action' => $this->action, - 'ttfb' => $this->ttfb, 'header' => $this->getHeader(), 'type' => $this->getType(), 'path' => $this->getPath(), @@ -404,21 +393,6 @@ private function _processView() */ $view = $this->_view; - // <-- Handle ttfb - // Need locate before setThemePath - // else path will be clean by $view->enable - if ($this->ttfb) { - $view[_TTFB] = true; - $view['reEnable'] = true; - $view->disable(); - } else { - if (!empty($view['reEnable'])) { - unset($view['reEnable']); - $view->enable(); - } - } - // end Handle ttfb--> - if ('redirect' !== $this->_type) { $path = $this->getPath(); if (is_null($path)) { diff --git a/src/Constants.php b/src/Constants.php index 1ff3242..aa0b6da 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -39,7 +39,6 @@ define('_HEADER', '_header_'); define('_PATH', '_path_'); define('_TYPE', '_type_'); - define('_TTFB', '_ttfb_'); define('_FORWARD', '_forward_'); define('_ERROR_FORWARD', '_error_forward_');