FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18738&edit=1

ID: 18738
Updated by: daniel.oconnor@gmail.com
Reported By: daniel dot oconnor at gmail dot com
Summary: Provide public setters for Net_Growl_Application
Status: Feedback
Type: Feature/Change Request
Package: Net_Growl
Package Version: SVN
PHP Version: Irrelevant
Assigned To: farell
Roadmap Versions:
New Comment:

Thanks; that'll work nicely (provided the self:: vs $this behaviour
works just the
same)


Previous Comments:
------------------------------------------------------------------------

[2011-09-22 17:03:33] farell

-Status: Assigned
+Status: Feedback
Daniel,

Let me know if my implementation in PEAR SVN repo match your needs as
expected.

I expect to publish (if you're agree) in two days

Laurent

------------------------------------------------------------------------

[2011-09-22 12:25:24] farell

-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: farell


------------------------------------------------------------------------

[2011-08-18 01:22:44] doconnor

Description:
------------
The constructor does setting behaviour on private variables
initially; but there's no way to override these later.

What I'm trying to do is refactor Net_Monitor to be more
dependency injection friendly - so I want to do is along the
lines of:

$growl = new Net_Growl(new Net_Growl_Application(null));
$alert = new Net_Monitor_Alert_Growl($growl);

... with information like which server to use being configured
later on:

$alert->alert($server, $messages, array('user' => ...,
'password' => ...)) {
// $this->growl->setPassword($options['password']);
}

The API does not let me do this easily at the moment

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 22, '11 at 10:05p
activeSep 22, '11 at 10:05p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase