Added inline documentation.
This commit is contained in:
1 parent
d850fa1b02
commit
8cd280f12a
20 files changed
+175
-29
No files matched your search
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user