Skip to content

Commit 3c4cbf3

Browse files
authored
Merge pull request #151 from appwrite/feat-upgrade-twig
Upgraded twig + stoped using absolute paths
2 parents fa66b2c + 62cf5f8 commit 3c4cbf3

File tree

19 files changed

+208
-203
lines changed

19 files changed

+208
-203
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"ext-curl": "*",
2121
"ext-mbstring": "*",
2222
"ext-json": "*",
23-
"twig/twig": "^2.12",
23+
"twig/twig": "^2.14",
2424
"matthiasmullie/minify": "^1.3"
2525
},
2626
"require-dev": {

composer.lock

Lines changed: 35 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/.gitkeep

Whitespace-only changes.

src/SDK/Language/CLI.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -108,128 +108,128 @@ public function getFiles()
108108
[
109109
'scope' => 'default',
110110
'destination' => 'README.md',
111-
'template' => '/cli/README.md.twig',
111+
'template' => 'cli/README.md.twig',
112112
'minify' => false,
113113
//'block' => 'default',
114114
],
115115
[
116116
'scope' => 'default',
117117
'destination' => 'CHANGELOG.md',
118-
'template' => '/cli/CHANGELOG.md.twig',
118+
'template' => 'cli/CHANGELOG.md.twig',
119119
'minify' => false,
120120
],
121121
[
122122
'scope' => 'default',
123123
'destination' => 'LICENSE',
124-
'template' => '/cli/LICENSE.md.twig',
124+
'template' => 'cli/LICENSE.md.twig',
125125
'minify' => false,
126126
],
127127
[
128128
'scope' => 'default',
129129
'destination' => 'composer.json',
130-
'template' => '/cli/composer.json.twig',
130+
'template' => 'cli/composer.json.twig',
131131
'minify' => false,
132132
],
133133
[
134134
'scope' => 'method',
135135
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
136-
'template' => '/cli/docs/example.md.twig',
136+
'template' => 'cli/docs/example.md.twig',
137137
'minify' => false,
138138
],
139139
[
140140
'scope' => 'default',
141141
'destination' => 'Dockerfile',
142-
'template' => '/cli/Dockerfile.twig',
142+
'template' => 'cli/Dockerfile.twig',
143143
'minify' => false,
144144
],
145145
[
146146
'scope' => 'default',
147147
'destination' => 'src/Client.php',
148-
'template' => '/cli/src/Client.php.twig',
148+
'template' => 'cli/src/Client.php.twig',
149149
'minify' => false,
150150
],
151151
[
152152
'scope' => 'default',
153153
'destination' => 'src/Parser.php',
154-
'template' => '/cli/src/Parser.php.twig',
154+
'template' => 'cli/src/Parser.php.twig',
155155
'minify' => false,
156156
],
157157
[
158158
'scope' => 'default',
159159
'destination' => 'src/Manipulators.php',
160-
'template' => '/cli/src/Manipulators.php.twig',
160+
'template' => 'cli/src/Manipulators.php.twig',
161161
'minify' => false,
162162
],
163163
[
164164
'scope' => 'service',
165165
'destination' => '/bin/{{service.name}}',
166-
'template' => '/cli/bin/service.twig',
166+
'template' => 'cli/bin/service.twig',
167167
'minify' => false,
168168
],
169169
[
170170
'scope' => 'default',
171171
'destination' => '/bin/client',
172-
'template' => '/cli/bin/client.twig',
172+
'template' => 'cli/bin/client.twig',
173173
'minify' => false,
174174
],
175175
[
176176
'scope' => 'default',
177177
'destination' => '/bin/help',
178-
'template' => '/cli/bin/help.twig',
178+
'template' => 'cli/bin/help.twig',
179179
'minify' => false,
180180
],
181181
[
182182
'scope' => 'default',
183183
'destination' => '/bin/version',
184-
'template' => '/cli/bin/version.twig',
184+
'template' => 'cli/bin/version.twig',
185185
'minify' => false,
186186
],
187187
[
188188
'scope' => 'default',
189189
'destination' => '/bin/init',
190-
'template' => '/cli/bin/init.twig',
190+
'template' => 'cli/bin/init.twig',
191191
'minify' => false,
192192
],
193193
[
194194
'scope' => 'service',
195195
'destination' => '/app/{{ spec.title | caseUcfirst}}/services/{{service.name | caseDash}}.php',
196-
'template' => '/cli/app/services/service.php.twig',
196+
'template' => 'cli/app/services/service.php.twig',
197197
'minify' => false,
198198
],
199199
[
200200
'scope' => 'default',
201201
'destination' => 'app/{{ spec.title | caseUcfirst}}/services/client.php',
202-
'template' => '/cli/app/services/client.php.twig',
202+
'template' => 'cli/app/services/client.php.twig',
203203
'minify' => false,
204204
],
205205
[
206206
'scope' => 'default',
207207
'destination' => 'app/{{ spec.title | caseUcfirst}}/services/help.php',
208-
'template' => '/cli/app/services/help.php.twig',
208+
'template' => 'cli/app/services/help.php.twig',
209209
'minify' => false,
210210
],
211211
[
212212
'scope' => 'default',
213213
'destination' => 'app/{{ spec.title | caseUcfirst}}/services/init.php',
214-
'template' => '/cli/app/services/init.php.twig',
214+
'template' => 'cli/app/services/init.php.twig',
215215
'minify' => false,
216216
],
217217
[
218218
'scope' => 'default',
219219
'destination' => '.travis.yml',
220-
'template' => '/cli/.travis.yml.twig',
220+
'template' => 'cli/.travis.yml.twig',
221221
'minify' => false,
222222
],
223223
[
224224
'scope' => 'default',
225225
'destination' => '/install.sh',
226-
'template' => '/cli/install.sh.twig',
226+
'template' => 'cli/install.sh.twig',
227227
'minify' => false,
228228
],
229229
[
230230
'scope' => 'default',
231231
'destination' => '/install.ps1',
232-
'template' => '/cli/install.ps1.twig',
232+
'template' => 'cli/install.ps1.twig',
233233
'minify' => false,
234234
],
235235
];

0 commit comments

Comments
 (0)