Files
Phraseanet/lib/Alchemy/Phrasea/Command/Feedback/Report/Action.php
jygaulier 69f3b30ee5 PHRAS-3768_feedback-report-per-record (#4421)
* add command feedback:report ; bump back to 4.1.8-rc9
WIP OK TO TEST

* aadd dry, log, ... ; move conf ; bump back to 4.1.8-rc8
WIP OK TO TEST

* add command feedback:report ; bump back to 4.1.8-rc9
WIP OK TO TEST

* aadd dry, log, ... ; move conf ; bump back to 4.1.8-rc8
WIP OK TO TEST

* add default (disabled) conf in conf.d

* Update Version.php

bump version made in #4426
2023-11-30 17:26:14 +01:00

30 lines
554 B
PHP

<?php
namespace Alchemy\Phrasea\Command\Feedback\Report;
use Twig_Environment;
use Twig_Template;
class Action
{
/** @var Twig_Template[] */
private $template = null;
/**
* @var array
*/
private $action_conf;
public function __construct(Twig_Environment $twig, array $action_conf)
{
$this->action_conf = $action_conf;
$this->template = $twig->createTemplate($action_conf['value']);
}
public function getValue(array $context)
{
return $this->template->render($context);
}
}