Automattic / newspack-custom-content-migrator

Custom migration tasks for launching and migrating Newspack sites on Atomic
5 stars 5 forks source link

One way to stop instanciation of commands #535

Closed naxoc closed 1 month ago

naxoc commented 1 month ago

I don't think there is much idea to instanciating ALL command classes in the plugin setup.

This is an idea on how we could switch the command add to be static and avoid all the instanciation of commmands.

I only put one example (PostMigrator) but we'd need to go through all commands and clean up.

How to test


naxoc commented 1 month ago

I'm closing this one in favor of: #536