Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
переделана работа с подпиской объектов
  • Loading branch information
Chernoskutov Pavel committed Jun 10, 2015
1 parent c835540 commit db6b7f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Docker.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,19 @@ public function pullImage($imageName)
return false;
}

public function registerListener($name, $object)
public function subscribeObject($name, $object)
{
if (method_exists($this->shell, 'registerListener')) {
$this->shell->registerListener($name, $object);
if (method_exists($this->shell, 'subscribeObject')) {
$this->shell->subscribeObject($name, $object);
return true;
}
return false;
}

public function unregisterListener($name)
public function unsubscribeObject($name)
{
if (method_exists($this->shell, 'unregisterListener')) {
$this->shell->unregisterListener($name);
if (method_exists($this->shell, 'unsubscribeObject')) {
$this->shell->unsubscribeObject($name);
return true;
}
return false;
Expand Down

0 comments on commit db6b7f1

Please sign in to comment.