context = new PluginContext( REMOVE_SCHEMA_FILE, REMOVE_SCHEMA_PATH, REMOVE_SCHEMA_URL, REMOVE_SCHEMA_VERSION, 'remove-schema', 'remove-schema' ); $this->assets = new AssetLocator( $this->context ); } /** * Bootstrap the plugin. * * @return void */ public static function boot(): void { $plugin = new self(); foreach ( $plugin->services() as $service ) { $service->register(); } } /** * Build the service list explicitly. * * @return array */ private function services(): array { return array( new SettingsPage( $this->context ), new PostEditor( $this->context ), new AdminAssets( $this->assets ), new SchemaRemoval( $this->context, new MarkupCleaner() ), ); } }