<?php declare(strict_types=1);

namespace Newland\Toubiz\Common\Neos\ViewHelpers;

use Neos\Flow\Utility\Environment;
use Neos\Flow\Annotations as Flow;
use Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;

class ContextViewHelper extends AbstractViewHelper
{
    /**
     * @var Environment
     * @Flow\Inject()
     */
    protected $environment;

    public function render(): string
    {
        return (string) $this->environment->getContext();
    }
}
