Added inline documentation.

This commit is contained in:
Andrey Savchenko committed 2018-02-14 17:54:28 +02:00
1 parent d850fa1b02
commit 8cd280f12a
20 files changed
+175 -29

No files matched your search

+9
View File
@@ -11,8 +11,14 @@ use Rarst\Laps\Record\Record_Collector_Interface;
use Rarst\Laps\Record\Sql_Record_Collector;
use Symfony\Component\Stopwatch\Stopwatch;
/**
* Registers record collectors (responsible to gather and compile event data) and their dependencies.
*/
class Record_Provider implements ServiceProviderInterface, Bootable_Provider_Interface {
/**
* @param Container $pimple Container instance.
*/
public function register( Container $pimple ) {
$pimple['stopwatch'] = $pimple->factory( function () {
@@ -40,6 +46,9 @@ class Record_Provider implements ServiceProviderInterface, Bootable_Provider_Int
};
}
/**
* @param Plugin $laps Container instance.
*/
public function boot( Plugin $laps ) {
$laps['collectors'];
}