Skip to content

Commit b9efa3b

Browse files
committed
Merge pull request #41 from php-http/remove_interface_suffix
Remove interface suffix to follow php-http style
2 parents e25f3d1 + 3c4387a commit b9efa3b

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

ClientFactory/ClientFactoryInterface.php renamed to ClientFactory/ClientFactory.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22

33
namespace Http\HttplugBundle\ClientFactory;
44

5+
use Http\Client\HttpClient;
6+
57
/**
68
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
79
*/
8-
interface ClientFactoryInterface
10+
interface ClientFactory
911
{
1012
/**
1113
* Input an array of configuration to be able to create a HttpClient.
1214
*
1315
* @param array $config
1416
*
15-
* @return \Http\Client\HttpClient
17+
* @return HttpClient
1618
*/
1719
public function createClient(array $config = []);
1820
}

ClientFactory/Guzzle5Factory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1010
*/
11-
class Guzzle5Factory implements ClientFactoryInterface
11+
class Guzzle5Factory implements ClientFactory
1212
{
1313
/**
1414
* {@inheritdoc}

ClientFactory/Guzzle6Factory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1010
*/
11-
class Guzzle6Factory implements ClientFactoryInterface
11+
class Guzzle6Factory implements ClientFactory
1212
{
1313
/**
1414
* {@inheritdoc}

ClientFactory/PluginClientFactory.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
class PluginClientFactory
1313
{
1414
/**
15-
* @param array $plugins
16-
* @param ClientFactoryInterface $factory
17-
* @param array $config
15+
* @param array $plugins
16+
* @param ClientFactory $factory
17+
* @param array $config
1818
*
1919
* @return PluginClient
2020
*/
21-
public static function createPluginClient(array $plugins, ClientFactoryInterface $factory, array $config)
21+
public static function createPluginClient(array $plugins, ClientFactory $factory, array $config)
2222
{
2323
return new PluginClient($factory->createClient($config), $plugins);
2424
}

0 commit comments

Comments
 (0)