/** * @param string $category * @param string $message * @param array $params */ public function functionTranslate($category, $message, array $params = []) { return Application::getService('Translator')->translate($category, $message, $params); }
/** * @return array */ private function getContext() { return ['route' => Application::getService('Request')->getRoute(), 'baseUrl' => Application::getService('Request')->getBasePath(), 'theme' => $this->config->get('theme')]; }
protected function getService($name) { return \Herbie\Application::getService($name); }
/** * @return array */ private function getContext() { // @todo Inject request object or refactor code return ['route' => Application::getService('Request')->getRoute(), 'baseUrl' => Application::getService('Request')->getBasePath(), 'theme' => $this->config->get('theme')]; }