Closed GoogleCodeExporter closed 9 years ago
I think i prefer the overrideServlet way of doing it, between the two, but I
see arguments for both ways.
_initUrls is protected so you could also just create your own Service subclass
that calls the parent method but then constructs it's own _pingUrl after that
call
...
protected function _initUrls()
{
// call the parent implementation
parent::_initUrls();
// replace the ping url
$this->_pingUrl = $this->_constructUrl('/ping');
}
...
Original comment by donovan....@gmail.com
on 26 Aug 2011 at 3:25
Wow, I've been stuck in procedural-programming-land for so long that it didn't
even occur to me to subclass Service (/facepalm). That'll work fine for our
needs, particularly if we're the only ones who need this. Thanks for the
much-needed reminder.
Original comment by dblue...@gmail.com
on 29 Aug 2011 at 8:56
your other suggestions are still very valid, but I think subclassing in this
case is simplest all around. Glad your problem is resolved.
Original comment by donovan....@gmail.com
on 29 Aug 2011 at 9:23
Original issue reported on code.google.com by
dblue...@gmail.com
on 24 Aug 2011 at 12:17