This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file, in reverse chronological order by release.
4
4
5
+ ## 0.3.1 - 2018-03-12
6
+
7
+ ### Added
8
+
9
+ - Nothing.
10
+
11
+ ### Changed
12
+
13
+ - [ #22 ] ( https://github.com/zendframework/zend-expressive-authentication/issues/22 )
14
+ updates the ` ResponsePrototypeTrait ` to allow callable ` ResponseInterface `
15
+ services (instead of those directly returning a ` ResponseInterface ` ).
16
+
17
+ ### Deprecated
18
+
19
+ - Nothing.
20
+
21
+ ### Removed
22
+
23
+ - Nothing.
24
+
25
+ ### Fixed
26
+
27
+ - Nothing.
28
+
5
29
## 0.3.0 - 2018-01-24
6
30
7
31
### Added
Original file line number Diff line number Diff line change @@ -29,8 +29,12 @@ protected function getResponsePrototype(ContainerInterface $container) : Respons
29
29
ResponseInterface::class
30
30
));
31
31
}
32
- return $ container ->has (ResponseInterface::class)
32
+
33
+ $ response = $ container ->has (ResponseInterface::class)
33
34
? $ container ->get (ResponseInterface::class)
34
35
: new Response ();
36
+
37
+ // Allow usage of callable factories to generate a response.
38
+ return is_callable ($ response ) ? $ response () : $ response ;
35
39
}
36
40
}
You can’t perform that action at this time.
0 commit comments