mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-18 04:19:12 +00:00
Import statements and update configuration.
This commit is contained in:
@@ -25,13 +25,15 @@ namespace FireflyIII\Support\Twig;
|
||||
|
||||
use Twig\Extension\AbstractExtension;
|
||||
use Twig\TwigFunction;
|
||||
use Config;
|
||||
use Override;
|
||||
|
||||
/**
|
||||
* Class Rule.
|
||||
*/
|
||||
class Rule extends AbstractExtension
|
||||
{
|
||||
#[\Override]
|
||||
#[Override]
|
||||
public function getFunctions(): array
|
||||
{
|
||||
return [
|
||||
@@ -79,7 +81,7 @@ class Rule extends AbstractExtension
|
||||
'allRuleActions',
|
||||
static function () {
|
||||
// array of valid values for actions
|
||||
$ruleActions = array_keys(\Config::get('firefly.rule-actions'));
|
||||
$ruleActions = array_keys(Config::get('firefly.rule-actions'));
|
||||
$possibleActions = [];
|
||||
foreach ($ruleActions as $key) {
|
||||
$possibleActions[$key] = (string) trans('firefly.rule_action_'.$key.'_choice');
|
||||
|
||||
Reference in New Issue
Block a user