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 33namespace Http \HttplugBundle \ClientFactory ;
44
55use Http \Client \HttpClient ;
6- use Http \HttplugBundle \Exception \ClientWasNotCreated ;
6+ use Http \HttplugBundle \Exception \InvalidConfiguration ;
77
88/**
99 * @author Tobias Nyholm <[email protected] > @@ -17,7 +17,7 @@ interface ClientFactoryInterface
1717 *
1818 * @return HttpClient
1919 *
20- * @throws ClientWasNotCreated
20+ * @throws InvalidConfiguration
2121 */
2222 public function createClient (array $ config = array ());
2323
Original file line number Diff line number Diff line change 22
33namespace Http \HttplugBundle \ClientFactory ;
44
5- use Http \HttplugBundle \Exception \ClientWasNotCreated ;
5+ use Http \HttplugBundle \Exception \InvalidConfiguration ;
66
77/**
88 * 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
1717 */
1818 public function createClient (array $ config = array ())
1919 {
20- throw new ClientWasNotCreated ('The DummyFactory should not be used. ' );
20+ throw new InvalidConfiguration ('The DummyFactory should not be used. ' );
2121 }
2222
2323 /**
Original file line number Diff line number Diff line change 22
33namespace Http \HttplugBundle \Exception ;
44
5- class ClientWasNotCreated extends \Exception
5+ class InvalidConfiguration extends \Exception
66{
77}
You can’t perform that action at this time.
0 commit comments