private function getCurrentLocale() { if ($this->container->isDefined(RouteAttribute::LOCALE)) { return $this->container->get(RouteAttribute::LOCALE); } else { return $this->config->get('translation.defaultLocale', null); } }
public function get($key, $default = null) { if ($this->container->isDefined($key)) { return $this->container->get($key); } else { return $default; } }