From 0f1f514fde6401d26dc5761d64e02f0ce2c4ce6c Mon Sep 17 00:00:00 2001 From: Fabien Bourigault Date: Mon, 10 Jul 2017 13:34:33 +0200 Subject: [PATCH] add PluginClientFactory comments --- src/PluginClientFactory.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PluginClientFactory.php b/src/PluginClientFactory.php index 14c4712..13a4ba7 100644 --- a/src/PluginClientFactory.php +++ b/src/PluginClientFactory.php @@ -6,6 +6,9 @@ use Http\Client\HttpClient; /** + * Factory to create PluginClient instances. Using this factory instead of calling PluginClient constructor will enable + * the Symfony profiling without any configuration. + * * @author Fabien Bourigault */ final class PluginClientFactory @@ -19,6 +22,8 @@ final class PluginClientFactory * Set the factory to use. * The callable to provide must have the same arguments and return type as PluginClientFactory::createClient. * This is used by the HTTPlugBundle to provide a better Symfony integration. + * Unlike the createClient method, this one is static to allow zero configuration profiling by hooking into early + * application execution. * * @internal *