Changed Stopwatch service to a factory.

This commit is contained in:
Andrey Savchenko committed 2018-02-08 16:20:30 +02:00
1 parent 054bf2e0df
commit c93249875b
2 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -31,9 +31,9 @@ class Laps extends Container {
] );
};
$laps['stopwatch'] = function () {
$laps['stopwatch'] = $laps->factory( function () {
return new Stopwatch();
};
} );
$laps->register( new Hook_Events_Provider() );
$laps->register( new Http_Events_Provider() );