From: Aaron Schulz Date: Thu, 24 Dec 2015 01:23:15 +0000 (-0800) Subject: Make sure docs encourage __METHOD__ use for begin/commit X-Git-Tag: 1.31.0-rc.0~8549^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=9ea5cfe377f71aa2e7e0efbd7d4ad4f28204ae5b;p=lhc%2Fweb%2Fwiklou.git Make sure docs encourage __METHOD__ use for begin/commit Change-Id: Id9c2d1b30f9dd758b418894b5751556daff20f0e --- diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 01f8ccc549..4aa868efce 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -450,7 +450,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * * Example usage: * @code - * $dbw->begin(); // start of request + * $dbw->begin( __METHOD__ ); // start of request * ... ... * // Update the row in the DB * $dbw->update( ... ); @@ -460,7 +460,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * $cache->delete( $key ); * } ); * ... ... - * $dbw->commit(); // end of request + * $dbw->commit( __METHOD__ ); // end of request * @endcode * * The $ttl parameter can be used when purging values that have not actually changed