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(); - } -}