Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 8068159

Browse files
committed
2.2.0 readiness
1 parent 1b1811f commit 8068159

File tree

4 files changed

+33
-4
lines changed

4 files changed

+33
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5-
## 2.2.0 - TBD
5+
## 2.2.0 - 2019-06-04
66

77
### Added
88

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
},
5353
"extra": {
5454
"branch-alias": {
55-
"dev-master": "2.1.x-dev",
56-
"dev-develop": "2.2.x-dev"
55+
"dev-master": "2.2.x-dev",
56+
"dev-develop": "3.0.x-dev"
5757
},
5858
"zf": {
5959
"config-provider": "Zend\\Expressive\\ZendView\\ConfigProvider"

composer.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
/**
3+
* @see https://github.com/zendframework/zend-expressive-zendviewrenderer for the canonical source repository
4+
* @copyright Copyright (c) 2019 Zend Technologies USA Inc. (https://www.zend.com)
5+
* @license https://github.com/zendframework/zend-expressive-zendviewrenderer/blob/master/LICENSE.md New BSD License
6+
*/
7+
8+
declare(strict_types=1);
9+
10+
namespace Zend\Expressive\ZendView;
11+
12+
use Psr\Container\ContainerInterface;
13+
14+
class NamespacedPathStackResolverFactory
15+
{
16+
public function __invoke(ContainerInterface $container) : NamespacedPathStackResolver
17+
{
18+
$config = $container->has('config') ? $container->get('config') : [];
19+
$config = $config['templates'] ?? [];
20+
21+
$resolver = new NamespacedPathStackResolver();
22+
if (! empty($config['default_suffix'])) {
23+
$resolver->setDefaultSuffix($config['default_suffix']);
24+
}
25+
26+
return $resolver;
27+
}
28+
}

0 commit comments

Comments
 (0)