opentalentEnvService = $opentalentEnvService; } /** * -- This method is expected by Fluid -- * Declares the viewhelper's parameters */ public function initializeArguments() { $this->registerArgument('argument', 'string', "The argument's name", true); } /** * -- This method is expected by Fluid -- * Renders the content as html * * @param array $arguments * @param Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return string */ public function render() { $argument = $this->arguments['argument']; return $this->opentalentEnvService->get($argument); } }