/** * Injects a user helper. * * @param string location, base location of this helper. * @throws FileNotFoundException if the helper cannot be loaded. * @return void * @access private */ protected function injectHelper($name) { $helper_file = $this->path['helpers'] . $name . '_helper.php'; $this->logger->debug('[Medick] >> Loading Helper `' . $name . '` from ' . str_replace($this->config->getApplicationPath(), '${' . $this->config->getApplicationName() . '}', $helper_file)); try { return $this->includeFile($helper_file, $name . '_helper.php'); } catch (FileNotFoundException $fnfEx) { $this->logger->info(sprintf('[Medick] >> Skipped missing helper %s', $name)); } }
/** * Injects a user helper. * * @param string location, base location of this helper. * @throws FileNotFoundException if the helper cannot be loaded. * @return void * @access private */ protected function injectHelper($name) { $helper_file = $this->path['helpers'] . $name . '_helper.php'; $this->logger->debug('[Medick] >> Lading Helper ' . $name . ' from ' . str_replace($this->config->getApplicationPath(), '${' . $this->config->getApplicationName() . '}', $helper_file)); return $this->includeFile($helper_file, $name . '_helper.php'); }