File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 44
55use Rareloop \Primer \Contracts \TemplateProvider ;
66use Twig \Loader \LoaderInterface ;
7- use Twig_Source ;
87
98class PrimerLoader implements LoaderInterface
109{
@@ -26,7 +25,7 @@ public function __construct(TemplateProvider $templateProvider)
2625 */
2726 public function getSourceContext ($ name )
2827 {
29- return new Twig_Source ($ this ->templateProvider ->getPatternTemplate ($ name ), $ name );
28+ return new \ Twig \ Source ($ this ->templateProvider ->getPatternTemplate ($ name ), $ name );
3029 }
3130
3231 /**
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function can_get_source_context()
5151
5252 $ source = $ loader ->getSourceContext ('components/misc/header ' );
5353
54- $ this ->assertInstanceOf (\Twig_Source ::class, $ source );
54+ $ this ->assertInstanceOf (\Twig \Source ::class, $ source );
5555 $ this ->assertSame ('<h1>Hello World</h1> ' , $ source ->getCode ());
5656 $ this ->assertSame ('components/misc/header ' , $ source ->getName ());
5757 }
You can’t perform that action at this time.
0 commit comments