1 parent
cd55061e69
commit
204c1df755
29 files changed
+115
-75
No files matched your search
@@ -1,9 +1,13 @@
|
||||
<?php
|
||||
declare( strict_types=1 );
|
||||
|
||||
namespace Rarst\Laps\Provider;
|
||||
|
||||
use Rarst\Laps\Plugin;
|
||||
|
||||
/**
|
||||
* Interface for providers that need to boot up once plugin is ready to start.
|
||||
*/
|
||||
interface Bootable_Provider_Interface {
|
||||
|
||||
/**
|
||||
@@ -11,5 +15,5 @@ interface Bootable_Provider_Interface {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot( Plugin $laps );
|
||||
public function boot( Plugin $laps ): void;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
declare( strict_types=1 );
|
||||
|
||||
namespace Rarst\Laps\Provider;
|
||||
|
||||
@@ -18,7 +19,7 @@ class Hook_Event_Provider implements ServiceProviderInterface {
|
||||
/**
|
||||
* @param Container $pimple Container instance.
|
||||
*/
|
||||
public function register( Container $pimple ) {
|
||||
public function register( Container $pimple ): void {
|
||||
|
||||
$pimple['hook.events'] = function () {
|
||||
return [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
declare( strict_types=1 );
|
||||
|
||||
namespace Rarst\Laps\Provider;
|
||||
|
||||
@@ -17,7 +18,7 @@ class Manager_Provider implements ServiceProviderInterface, Bootable_Provider_In
|
||||
/**
|
||||
* @param Container $pimple Container instance.
|
||||
*/
|
||||
public function register( Container $pimple ) {
|
||||
public function register( Container $pimple ): void {
|
||||
|
||||
$pimple['managers'] = function ( Plugin $laps ) {
|
||||
return [
|
||||
@@ -31,7 +32,7 @@ class Manager_Provider implements ServiceProviderInterface, Bootable_Provider_In
|
||||
/**
|
||||
* @param Plugin $laps Container instance.
|
||||
*/
|
||||
public function boot( Plugin $laps ) {
|
||||
public function boot( Plugin $laps ): void {
|
||||
$laps['managers'];
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
declare( strict_types=1 );
|
||||
|
||||
namespace Rarst\Laps\Provider;
|
||||
|
||||
@@ -20,7 +21,7 @@ class Record_Provider implements ServiceProviderInterface, Bootable_Provider_Int
|
||||
/**
|
||||
* @param Container $pimple Container instance.
|
||||
*/
|
||||
public function register( Container $pimple ) {
|
||||
public function register( Container $pimple ): void {
|
||||
|
||||
$pimple['stopwatch'] = $pimple->factory( function () {
|
||||
return new Stopwatch( true );
|
||||
@@ -51,7 +52,7 @@ class Record_Provider implements ServiceProviderInterface, Bootable_Provider_Int
|
||||
/**
|
||||
* @param Plugin $laps Container instance.
|
||||
*/
|
||||
public function boot( Plugin $laps ) {
|
||||
public function boot( Plugin $laps ): void {
|
||||
$laps['collectors'];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user