8000 Adding 3 Stimulus Twig functions · symfony-tools/code-block-checker@2fe211a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fe211a

Browse files
weaverryanjaviereguiluz
authored andcommitted
Adding 3 Stimulus Twig functions
1 parent 6388a06 commit 2fe211a

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

composer.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "symfony-tools/code-block-checker",
3-
"type": "project",
43
"license": "proprietary",
4+
"type": "project",
55
"require": {
66
"php": ">=8.0",
77
"ext-ctype": "*",
@@ -21,13 +21,25 @@
2121
"symfony/yaml": "^5.2",
2222
"twig/twig": "^3.3"
2323
},
24+
"require-dev": {
25+
"bamarni/composer-bin-plugin": "^1.4.1",
26+
"phpunit/phpunit": "^9.3.10"
27+
},
2428
"replace": {
2529
"symfony/polyfill-ctype": "*",
2630
"symfony/polyfill-iconv": "*"
2731
},
28-
"require-dev": {
29-
"bamarni/composer-bin-plugin": "^1.4.1",
30-
"phpunit/phpunit": "^9.3.10"
32+
"minimum-stability": "dev",
33+
"prefer-stable": true,
34+
"autoload": {
35+
"psr-4": {
36+
"SymfonyTools\\CodeBlockChecker\\": "src/"
37+
}
38+
},
39+
"autoload-dev": {
40+
"psr-4": {
41+
"SymfonyTools\\CodeBlockChecker\\Tests\\": "tests/"
42+
}
3143
},
3244
"config": {
3345
"optimize-autoloader": true,
@@ -40,17 +52,5 @@
4052
"symfony": {
4153
"allow-contrib": false
4254
}
43-
},
44-
"autoload": {
45-
"psr-4": {
46-
"SymfonyTools\\CodeBlockChecker\\": "src/"
47-
}
48-
},
49-
"autoload-dev": {
50-
"psr-4": {
51-
"SymfonyTools\\CodeBlockChecker\\Tests\\": "tests/"
52-
}
53-
},
54-
"minimum-stability": "dev",
55-
"prefer-stable": true
55+
}
5656
}

src/Twig/DummyExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public function getFunctions()
6262
new TwigFunction('workflow_transition'),
6363
new TwigFunction('t'),
6464
new TwigFunction('mercure'),
65+
new TwigFunction('stimulus_controller'),
66+
new TwigFunction('stimulus_action'),
67+
new TwigFunction('stimulus_target'),
6568
];
6669
}
6770

0 commit comments

Comments
 (0)
0