I would like to create a Listener class
class Listener { var $listeners = array(); public function add(callable $function) { $this->li
I don't think you can specify a callable this way...
Try
$listener->add(array($this, 'bar'));
And see http://php.net/manual/en/language.types.callable.php too.