<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @bundles/CoreBundle/Helper/TrailingSlashHelper.php */
class __TwigTemplate_1da1d47a1f4017f19ab3d2f9f3641c59 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<?php

namespace Mautic\\CoreBundle\\Helper;

use Symfony\\Component\\HttpFoundation\\Request;

class TrailingSlashHelper
{
    /**
     * @var CoreParametersHelper
     */
    private \$coreParametersHelper;

    /**
     * TrailingSlashHelper constructor.
     */
    public function __construct(CoreParametersHelper \$coreParametersHelper)
    {
        \$this->coreParametersHelper = \$coreParametersHelper;
    }

    /**
     * @return string
     */
    public function getSafeRedirectUrl(Request \$request)
    {
        \$siteUrl  = \$this->coreParametersHelper->get('site_url');
        \$pathInfo = substr(\$request->getPathInfo(), 0, -1);

        return \$siteUrl.\$pathInfo;
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/CoreBundle/Helper/TrailingSlashHelper.php";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/CoreBundle/Helper/TrailingSlashHelper.php", "/var/www/mautic/app/bundles/CoreBundle/Helper/TrailingSlashHelper.php");
    }
}
