Lucas_Werkmeister_WMDE added a comment.

  This snippet in `WikibaseClient.example.php` is going to be interesting:
  
    // If this wiki also runs the Wikibase repo extension,
    // use the automatic defaults for repo-related settings.
    // If this wiki isn't running the repo extension,
    // configure an example repo.
    if ( !defined( 'WB_VERSION' ) ) {
  
  I stepped through it with the debugger to confirm my suspicion – at the point 
that this file is loaded, the WikibaseRepository extension is not yet 
//loaded// (i. e. `ExtensionRegistry::getInstance()->isLoaded( 
'WikibaseRepository' )` will return `false`). The extension is //queued//, 
which we could detect by finding its JSON file in 
`ExtensionRegistry::getInstance()->getQueue()`, but that method is internal and 
“not intended to be used outside of the installer”. This also touches on task 
T256252: Migrate wgWBClientDataTypes + wgWBClientSettings loading out of Client 
PHP entry point <https://phabricator.wikimedia.org/T256252>, I think.

TASK DETAIL
  https://phabricator.wikimedia.org/T256238

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Aklapper, Lucas_Werkmeister_WMDE, darthmon_wmde, DannyS712, Nandana, Lahi, 
Gq86, Pablo-WMDE, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Izno, Wikidata-bugs, aude, Dinoguy1000, 
Lydia_Pintscher, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to