Add docblock and rename a parameter for Main::registerExtension() and Main::registerExtensionPsr4().