Changed Stopwatch service to a factory.
This commit is contained in:
1 parent
054bf2e0df
commit
c93249875b
2 files changed
+8
-3
No files matched your search
+2
-2
@@ -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() );
|
||||
|
||||
Reference in new issue
Block a user