This repository was archived by the owner on Jan 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
3
* @see https://github.com/zendframework/zend-expressive-zendviewrenderer for the canonical source repository
4
- * @copyright Copyright (c) 2017 Zend Technologies USA Inc. (https://www.zend.com)
4
+ * @copyright Copyright (c) 2017-2019 Zend Technologies USA Inc. (https://www.zend.com)
5
5
* @license https://github.com/zendframework/zend-expressive-zendviewrenderer/blob/master/LICENSE.md New BSD License
6
6
*/
7
7
@@ -38,7 +38,7 @@ public function getDependencies() : array
38
38
public function getTemplates () : array
39
39
{
40
40
return [
41
- 'default_suffix ' => 'phtml ' ,
41
+ 'extension ' => 'phtml ' ,
42
42
'layout ' => 'layout::default ' ,
43
43
'paths ' => [],
44
44
];
Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ public function __invoke(ContainerInterface $container) : ZendViewRenderer
69
69
70
70
$ nsPathResolver = new NamespacedPathStackResolver ();
71
71
// Set default suffix
72
- if (isset ($ config ['default_suffix ' ])) {
73
- $ nsPathResolver ->setDefaultSuffix ($ config ['default_suffix ' ]);
72
+ if (isset ($ config ['extension ' ])) {
73
+ $ nsPathResolver ->setDefaultSuffix ($ config ['extension ' ]);
74
74
}
75
75
$ resolver ->attach (
76
76
$ nsPathResolver ,
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
3
* @see https://github.com/zendframework/zend-expressive-zendviewrenderer for the canonical source repository
4
- * @copyright Copyright (c) 2015-2017 Zend Technologies USA Inc. (https://www.zend.com)
4
+ * @copyright Copyright (c) 2015-2019 Zend Technologies USA Inc. (https://www.zend.com)
5
5
* @license https://github.com/zendframework/zend-expressive-zendviewrenderer/blob/master/LICENSE.md New BSD License
6
6
*/
7
7
@@ -256,7 +256,7 @@ public function testConfiguresCustomDefaultSuffix()
256
256
{
257
257
$ config = [
258
258
'templates ' => [
259
- 'default_suffix ' => 'php ' ,
259
+ 'extension ' => 'php ' ,
260
260
],
261
261
];
262
262
You can’t perform that action at this time.
0 commit comments