[feature/migrations] Make the container available to extension installers

This allows extensions to load and install migrations easily as per their
needs.

PHPBB3-11318
[feature/migrations] Automatically install/revert migrations for extensions

Migrations from ext/ext_name/migrations/ are automatically installed
when enabling the extension and automatically reverted when the
extension is purged.

PHPBB3-11318
[feature/migrations] Fix path to extension migrations

PHPBB3-11318
Merge branch 'develop' of https://github.com/phpbb/phpbb3 into feature/migrations-extensions

# Via Igor Wiedler (1) and Nathaniel Guse (1)
* 'develop' of https://github.com/phpbb/phpbb3:
  [ticket/11350] Do not pass $db by reference; typehint phpbb_db_driver
[feature/migrations] Inject Migrator instead of using the container to fetch

PHPBB3-11318
[feature/migrations] Call revert correctly when purging an extension

PHPBB3-11318
[feature/migrations] Catch and display errors from the migrator

PHPBB3-11318
[feature/migrations] Fix failing tests

PHPBB3-11318
[feature/migrations] Fix failing tests (again)

PHPBB3-11318
[feature/migrations] Use getLocalisedMessage() function to get error message

PHPBB3-11318
Merge remote-tracking branch 'EXreaction/feature/migrations-extensions' into develop

# By Nathaniel Guse (6) and Nathan Guse (3)
# Via Nathan Guse (1) and Nathaniel Guse (1)
* EXreaction/feature/migrations-extensions:
  [feature/migrations] Use getLocalisedMessage() function to get error message
  [feature/migrations] Fix failing tests (again)
  [feature/migrations] Fix failing tests
  [feature/migrations] Catch and display errors from the migrator
  [feature/migrations] Call revert correctly when purging an extension
  [feature/migrations] Inject Migrator instead of using the container to fetch
  [feature/migrations] Fix path to extension migrations
  [feature/migrations] Automatically install/revert migrations for extensions
  [feature/migrations] Make the container available to extension installers