[Bug 25049] Add hook for extensions to register into the resource loader

2010-09-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=25049

Trevor Parscal tpars...@wikimedia.org changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED

--- Comment #5 from Trevor Parscal tpars...@wikimedia.org 2010-09-24 22:19:06 
UTC ---
It is as of r73686 - thanks for noticing.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 25049] Add hook for extensions to register into the resource loader

2010-09-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=25049

Trevor Parscal tpars...@wikimedia.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #3 from Trevor Parscal tpars...@wikimedia.org 2010-09-22 21:57:36 
UTC ---
This has been done for a while now. The hook is called
ResourceLoaderRegisterModules.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 25049] Add hook for extensions to register

2010-09-13 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=25049

--- Comment #2 from Roan Kattouw roan.katt...@gmail.com 2010-09-13 20:11:47 
UTC ---
(In reply to comment #1)
 Something like...
 
 // Allow extensions to register modules
 wfRunHooks( 'ResourceLoaderBeforeRespond', $context );
 
Pretty much yeah, except the second parameter is an array of parameters.

 ...inside of ResourceLoader::respond().
Because there are more ResourceLoader:: functions that use registrations, I'd
prefer having a function called by all such entry points that then calls this
hook once and only once.

In practical terms, something like

protected static function getHookRegistrations( $context ) {
static $done = false;
wfRunHooks( 'ResourceLoaderRegistrations', array( $context ) );
$done = true;
}

Then in all functions using the registration data (including respond(), but
also other functions reading from self::$modules), call this function.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 25049] Add hook for extensions to register into the resource loader

2010-09-13 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=25049

Platonides platoni...@gmail.com changed:

   What|Removed |Added

 CC||platoni...@gmail.com
Summary|Add hook for extensions to  |Add hook for extensions to
   |register|register into the resource
   ||loader

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 25049] Add hook for extensions to register

2010-09-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=25049

--- Comment #1 from Trevor Parscal tpars...@wikimedia.org 2010-09-04 10:36:25 
UTC ---
Something like...

// Allow extensions to register modules
wfRunHooks( 'ResourceLoaderBeforeRespond', $context );

...inside of ResourceLoader::respond().

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l