Skip to content

Commit 930348c

Browse files
committed
Bug fixes and preparing 0.3.0 release
Signed-off-by: RJ Garcia <rj@bighead.net>
1 parent c5199a1 commit 930348c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
88

9-
## [0.2.2] - 2017-03-11
9+
## [0.3.0] - 2017-03-11
1010
### Fixed
1111

1212
- Bug in auto wiring behavior so that subclassOf middleware runs before the container middleware
13-
- Updated composer deps to allow 0.4 and 0.5 version of the mw package.
13+
- Updated composer deps to require 0.5 version of the mw package.
1414

1515
## [0.2.1] - 2017-02-26
1616

src/AutoArgs.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ class AutoArgs
99
private $resolve_arg;
1010

1111
public function __construct(callable $resolve_arg = null) {
12-
$this->resolve_arg = $resolve_arg ?: self::createStack()->compose(function() {
13-
return [];
14-
});
12+
$this->resolve_arg = $resolve_arg ?: Mw\compose([
13+
function() { return []; },
14+
self::createStack()
15+
]);
1516
}
1617

1718
public function invoke(callable $callable, array $context) {
@@ -66,7 +67,7 @@ public function callableToReflectionFunctionAbstract($callable) {
6667
}
6768

6869
public static function createStack() {
69-
return mw\stack('Resolve Argument')
70+
return mw\stack()
7071
->push(defaultValueResolveArgument(), -1, 'defaultValue')
7172
->push(varNameResolveArgument(), 0, 'varName')
7273
->push(containerResolveArgument(), 0, 'container')

0 commit comments

Comments
 (0)