[EventDispatcher] Rename UnmodifiableEventDispatcher to ImmutableEventDispatcher

This commit is contained in:
Jordi Boggiano 2012-07-20 01:18:14 +02:00
parent 67bf84d7c5
commit 274eb9ebaf
3 changed files with 6 additions and 6 deletions

View File

@ -13,4 +13,4 @@ CHANGELOG
* added GenericEvent event class * added GenericEvent event class
* added the possibility for subscribers to subscribe several times for the * added the possibility for subscribers to subscribe several times for the
same event same event
* added UnmodifiableEventDispatcher * added ImmutableEventDispatcher

View File

@ -16,7 +16,7 @@ namespace Symfony\Component\EventDispatcher;
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */
class UnmodifiableEventDispatcher implements EventDispatcherInterface class ImmutableEventDispatcher implements EventDispatcherInterface
{ {
/** /**
* The proxied dispatcher. * The proxied dispatcher.

View File

@ -12,13 +12,13 @@
namespace Symfony\Component\EventDispatcher\Tests; namespace Symfony\Component\EventDispatcher\Tests;
use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\UnmodifiableEventDispatcher; use Symfony\Component\EventDispatcher\ImmutableEventDispatcher;
use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/** /**
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */
class UnmodifiableEventDispatcherTest extends \PHPUnit_Framework_TestCase class ImmutableEventDispatcherTest extends \PHPUnit_Framework_TestCase
{ {
/** /**
* @var \PHPUnit_Framework_MockObject_MockObject * @var \PHPUnit_Framework_MockObject_MockObject
@ -26,14 +26,14 @@ class UnmodifiableEventDispatcherTest extends \PHPUnit_Framework_TestCase
private $innerDispatcher; private $innerDispatcher;
/** /**
* @var UnmodifiableEventDispatcher * @var ImmutableEventDispatcher
*/ */
private $dispatcher; private $dispatcher;
protected function setUp() protected function setUp()
{ {
$this->innerDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'); $this->innerDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
$this->dispatcher = new UnmodifiableEventDispatcher($this->innerDispatcher); $this->dispatcher = new ImmutableEventDispatcher($this->innerDispatcher);
} }
public function testDispatchDelegates() public function testDispatchDelegates()