Skip to content

Commit 3c4387a

Browse files
committed
Remove interface suffix to follow php-http style, closes #28
1 parent e25f3d1 commit 3c4387a

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

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

Lines changed: 4 additions & 2 deletions
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 <[email protected]>
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* @author Tobias Nyholm <[email protected]>
1010
*/
11-
class Guzzle5Factory implements ClientFactoryInterface
11+
class Guzzle5Factory implements ClientFactory
1212
{
1313
/**
1414
* {@inheritdoc}

ClientFactory/Guzzle6Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* @author Tobias Nyholm <[email protected]>
1010
*/
11-
class Guzzle6Factory implements ClientFactoryInterface
11+
class Guzzle6Factory implements ClientFactory
1212
{
1313
/**
1414
* {@inheritdoc}

ClientFactory/PluginClientFactory.php

Lines changed: 4 additions & 4 deletions
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)