/** * Adds a helper * * @param AppHelper $helper Helper object * @param string $alias Optional Helper alias * * @since 1.0.0 */ public function addHelper($helper, $alias = null) { // add to helpers $name = $helper->getName(); $this->_helpers[$name] = $helper; // add alias if (!empty($alias)) { $this->_helpers[$alias] = $helper; } }