Преглед на файлове

Make callbacks properties protected in the DispatcherLoop class.

This makes easier to extend the class. The underlying pub/sub iterator
property is still private, but can be accessed via public getter method.
Daniele Alessandri преди 11 години
родител
ревизия
69c66e157f
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      lib/Predis/PubSub/DispatcherLoop.php

+ 4 - 3
lib/Predis/PubSub/DispatcherLoop.php

@@ -22,9 +22,10 @@ use Predis\ClientInterface;
 class DispatcherLoop
 {
     private $pubSubContext;
-    private $callbacks;
-    private $defaultCallback;
-    private $subscriptionCallback;
+
+    protected $callbacks;
+    protected $defaultCallback;
+    protected $subscriptionCallback;
 
     /**
      * @param ClientInterface Client instance used by the context.