WellCommerce\Bundle\CoreBundle\Helper\Templating\TemplatingHelper::resolveControllerTemplate PHP Метод

resolveControllerTemplate() публичный Метод

public resolveControllerTemplate ( WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface $controller, string $templateName ) : string
$controller WellCommerce\Bundle\CoreBundle\Controller\ControllerInterface
$templateName string
Результат string
    public function resolveControllerTemplate(ControllerInterface $controller, string $templateName) : string
    {
        $reflectionClass = new ReflectionClass($controller);
        $controllerName = $this->getControllerLogicalName($reflectionClass);
        $bundleName = $this->getBundleName($reflectionClass);
        return sprintf('%s:%s:%s.html.twig', $bundleName, $controllerName, $templateName);
    }