Migrations Events ================= The migrations library emits a series of events during the migration process. - ``onMigrationsMigrating``: fired immediately before starting to execute versions. This does not fire if there are no versions to be executed. - ``onMigrationsVersionExecuting``: fired before a single version executes. - ``onMigrationsVersionExecuted``: fired after a single version executes. - ``onMigrationsVersionSkipped``: fired when a single version is skipped. - ``onMigrationsMigrated``: fired when all versions have been executed. All of these events are emitted via the connection's event manager. Here's an example event subscriber that listens for all possible migrations events. .. code-block:: php getEventManager()->addEventSubscriber(new MigrationsListener()); // rest of the cli set up...