File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
namespace Http \HttplugBundle \ClientFactory ;
4
4
5
5
use Http \Client \HttpClient ;
6
- use Http \HttplugBundle \Exception \ClientWasNotCreated ;
6
+ use Http \HttplugBundle \Exception \InvalidConfiguration ;
7
7
8
8
/**
9
9
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
@@ -17,7 +17,7 @@ interface ClientFactoryInterface
17
17
*
18
18
* @return HttpClient
19
19
*
20
- * @throws ClientWasNotCreated
20
+ * @throws InvalidConfiguration
21
21
*/
22
22
public function createClient (array $ config = array ());
23
23
Original file line number Diff line number Diff line change 2
2
3
3
namespace Http \HttplugBundle \ClientFactory ;
4
4
5
- use Http \HttplugBundle \Exception \ClientWasNotCreated ;
5
+ use Http \HttplugBundle \Exception \InvalidConfiguration ;
6
6
7
7
/**
8
8
* This class is used with the dependency injection when we register the service. It acts like a place holder and
@@ -17,7 +17,7 @@ class DummyFactory implements ClientFactoryInterface
17
17
*/
18
18
public function createClient (array $ config = array ())
19
19
{
20
- throw new ClientWasNotCreated ('The DummyFactory should not be used. ' );
20
+ throw new InvalidConfiguration ('The DummyFactory should not be used. ' );
21
21
}
22
22
23
23
/**
Original file line number Diff line number Diff line change 2
2
3
3
namespace Http \HttplugBundle \Exception ;
4
4
5
- class ClientWasNotCreated extends \Exception
5
+ class InvalidConfiguration extends \Exception
6
6
{
7
7
}
You can’t perform that action at this time.
0 commit comments