From a62c4148f390e730ced032f155360c3292fa2471 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Sun, 24 Mar 2019 17:46:02 +0100 Subject: [PATCH] Remove SampleService --- src/Plugin.php | 1 - src/SampleService.php | 60 ------------------------------------------- 2 files changed, 61 deletions(-) delete mode 100644 src/SampleService.php diff --git a/src/Plugin.php b/src/Plugin.php index 2758f6e..864c1d8 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -178,7 +178,6 @@ private function get_service_classes(): array { return \apply_filters( self::SERVICES_FILTER, [ // Add services as FQCNs here. ViewFactory::class, - SampleService::class, SettingsGeneralService::class, ] ); } diff --git a/src/SampleService.php b/src/SampleService.php deleted file mode 100644 index 762da0a..0000000 --- a/src/SampleService.php +++ /dev/null @@ -1,60 +0,0 @@ -view_factory = $view_factory; - } - - /** - * Register the service. - * - * @return void - */ - public function register(): void { - \add_action( 'admin_notices', [ $this, 'render_notice' ] ); - } - - /** - * Render the admin notice. - * - * @return void - */ - public function render_notice(): void { - echo $this->view_factory->create( 'views/test-service' ) - ->render(); - } -}