container = $container; } /** * Retrieve an item from the view config. * * @param string $key * @param mixed $default * * @return mixed */ public function __invoke(string $key, $default = null) { try { return $this->container->get($key); } catch (NotFoundException $exception) { return $default; } } }