Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from liuggio/master
Browse files Browse the repository at this point in the history
fix warning
  • Loading branch information
Ocramius committed Jun 24, 2013
2 parents 4d203ef + abc057c commit 782620b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/ChangeSet/ChangeSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace ChangeSet;

use Zend\EventManager\EventManager;
use Zend\EventManager\EventManagerInterface;

class ChangeSet
Expand Down
1 change: 0 additions & 1 deletion src/ChangeSet/Committer/SimpleLoggingCommitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace ChangeSet\Committer;

use ChangeSet\ChangeSet;
use ChangeSet\Change;

class SimpleLoggingCommitter implements CommitterInterface
{
Expand Down
3 changes: 2 additions & 1 deletion src/ChangeSet/UnitOfWork/SimpleUnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class SimpleUnitOfWork implements UnitOfWorkInterface
{
protected $changeSet;

public function __construct(ChangeSet $changeSet)
{
$this->changeSet = $changeSet;
Expand All @@ -31,7 +32,7 @@ public function registerRemoved($object)
public function commit(CommitterInterface $committer)
{
$committer->commit($this->changeSet);

$this->changeSet = $this->changeSet->clean();
}
}

0 comments on commit 782620b

Please sign in to comment.