I successfully created a File Decorator with an onAfterWrite() function that works fine if files are uploaded through the cms, but doesn't work from /framework/cli-script.php dev/tasks/FilesystemSyncTask. Is there a way to get the Decorator to be accessible there as well?
I added it to the config through yml:
File:
extensions:
- FileDecorator
and the decorator is:
class FileDecorator extends DataExtension {
...
}