Skip to content

Commit bc3f994

Browse files
fbourigaultNyholm
authored andcommitted
add PluginClientFactory comments (#83)
1 parent c87566a commit bc3f994

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PluginClientFactory.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use Http\Client\HttpClient;
77

88
/**
9+
* Factory to create PluginClient instances. Using this factory instead of calling PluginClient constructor will enable
10+
* the Symfony profiling without any configuration.
11+
*
912
* @author Fabien Bourigault <bourigaultfabien@gmail.com>
1013
*/
1114
final class PluginClientFactory
@@ -19,6 +22,8 @@ final class PluginClientFactory
1922
* Set the factory to use.
2023
* The callable to provide must have the same arguments and return type as PluginClientFactory::createClient.
2124
* This is used by the HTTPlugBundle to provide a better Symfony integration.
25+
* Unlike the createClient method, this one is static to allow zero configuration profiling by hooking into early
26+
* application execution.
2227
*
2328
* @internal
2429
*

0 commit comments

Comments
 (0)