File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Http \HttplugBundle \ClientFactory ;
4
4
5
+ use Http \Client \Plugin \Plugin ;
5
6
use Http \Client \Plugin \PluginClient ;
6
7
7
8
/**
8
9
* This factory creates a PluginClient.
9
10
*
10
11
* @author Tobias Nyholm <[email protected] >
11
12
*/
12
- class PluginClientFactory
13
+ final class PluginClientFactory
13
14
{
14
15
/**
15
- * @param array $plugins
16
+ * @param Plugin[] $plugins
16
17
* @param ClientFactory $factory
17
18
* @param array $config
18
19
*
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ public function find($type)
37
37
{
38
38
$ class = $ this ->findOneByType ($ type );
39
39
40
- // TODO: use doctrine instantiator?
41
40
return new $ class ();
42
41
}
43
42
@@ -74,7 +73,7 @@ private function findOneByType($type)
74
73
}
75
74
76
75
/**
77
- * Evaulates conditions to boolean.
76
+ * Evaluates conditions to boolean.
78
77
*
79
78
* @param mixed $condition
80
79
*
Original file line number Diff line number Diff line change 1
- # HttplugBundle
1
+ # Symfony integration for HTTPlug
2
2
3
3
[ ![ Latest Version] ( https://img.shields.io/github/release/php-http/HttplugBundle.svg?style=flat-square )] ( https://github.com/php-http/HttplugBundle/releases )
4
4
[ ![ Software License] ( https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square )] ( LICENSE )
You can’t perform that action at this time.
0 commit comments