← Back to team overview

anewt-developers team mailing list archive

[Bug 514472] [NEW] Support for urldispatcher commands outside the dispatcher class

 

Public bug reported:

It would be useful if AnewtURLDispatcher could invoke commands that
defined outside the dispatcher class itself. While it is possible to
write single-line command_foo() implementations that directly call into
a (static) external method, this solution is not really elegant.

PHP has the "callback" pseudotype, which is also used e.g. for
call_user_func() an usort(), so perhaps the add_route_*() methods can
take a callback parameter instead of just a command name that is
translated to a command_foo() method call.

** Affects: anewt
     Importance: Wishlist
     Assignee: Wouter Bolsterlee (uws) (uws)
         Status: Triaged


** Tags: urldispatcher

** Changed in: anewt
   Importance: Undecided => Wishlist

** Changed in: anewt
     Assignee: (unassigned) => Wouter Bolsterlee (uws) (uws)

-- 
Support for urldispatcher commands outside the dispatcher class
https://bugs.launchpad.net/bugs/514472
You received this bug notification because you are a member of Anewt
developers, which is subscribed to Anewt.



Follow ups

References