From 8f3e2b2e5c62a6130f6c8867ab335fb4c1a32c5c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 4 Mar 2016 20:10:34 -0500 Subject: Helper refactoring --- app/Helper/Hook.php | 64 ----------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 app/Helper/Hook.php (limited to 'app/Helper/Hook.php') diff --git a/app/Helper/Hook.php b/app/Helper/Hook.php deleted file mode 100644 index 7b691949..00000000 --- a/app/Helper/Hook.php +++ /dev/null @@ -1,64 +0,0 @@ -hook->getListeners($hook) as $file) { - $buffer .= $this->helper->asset->$type($file); - } - - return $buffer; - } - - /** - * Render all attached hooks - * - * @access public - * @param string $hook - * @param array $variables - * @return string - */ - public function render($hook, array $variables = array()) - { - $buffer = ''; - - foreach ($this->hook->getListeners($hook) as $template) { - $buffer .= $this->template->render($template, $variables); - } - - return $buffer; - } - - /** - * Attach a template to a hook - * - * @access public - * @param string $hook - * @param string $template - * @return \Helper\Hook - */ - public function attach($hook, $template) - { - $this->hook->on($hook, $template); - return $this; - } -} -- cgit v1.2.3