Skip to content

Commit 05a7fde

Browse files
authored
Merge pull request #105 from netbull/master
Update composer.json to allow Twig v2 to be used
2 parents 2c2d5cb + 16a9ef4 commit 05a7fde

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Twig/Extension/MobileDetectExtension.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@ public function setRequestByRequestStack(RequestStack $requestStack = null) {
217217
$this->request = $requestStack->getMasterRequest();
218218
}
219219
}
220+
221+
/**
222+
* @inheritdoc
223+
*/
224+
public function getGlobals() {
225+
return [];
226+
}
220227

221228
/**
222229
* Extension name

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"php": ">=5.5.0",
2424
"symfony/framework-bundle": "~2.4|~3.0",
2525
"mobiledetect/mobiledetectlib": "~2.8",
26-
"twig/twig": "~1.23"
26+
"twig/twig": "~1.23|~2.0"
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "~4.1",

0 commit comments

Comments
 (0)