Skip to content

Commit

Permalink
Merge branch 'main' into import-publish-statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Nov 8, 2024
2 parents ad49abd + 87592ec commit 408039e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,15 @@ The importer includes a few transformers out of the box for Core fieldtypes, but
use App\ImportTransformers\YourTransformer;
use Illuminate\Support\ServiceProvider;
use Statamic\Importer\Importer;
use Statamic\Statamic;

class AppServiceProvider extends ServiceProvider
{
public function boot(): void
{
Importer::registerTransformer('fieldtype', YourTransformer::class);
Statamic::booted(function () {
Importer::registerTransformer('fieldtype', YourTransformer::class);
});
}
}
```
Expand Down

0 comments on commit 408039e

Please sign in to comment.