diff --git a/src/Symfony/Component/EventDispatcher/CHANGELOG.md b/src/Symfony/Component/EventDispatcher/CHANGELOG.md index 9f8c8129e204..536c5ac72981 100644 --- a/src/Symfony/Component/EventDispatcher/CHANGELOG.md +++ b/src/Symfony/Component/EventDispatcher/CHANGELOG.md @@ -13,4 +13,4 @@ CHANGELOG * added GenericEvent event class * added the possibility for subscribers to subscribe several times for the same event - * added UnmodifiableEventDispatcher + * added ImmutableEventDispatcher diff --git a/src/Symfony/Component/EventDispatcher/UnmodifiableEventDispatcher.php b/src/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php similarity index 96% rename from src/Symfony/Component/EventDispatcher/UnmodifiableEventDispatcher.php rename to src/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php index c7097aa42987..b70b81a8b2ed 100644 --- a/src/Symfony/Component/EventDispatcher/UnmodifiableEventDispatcher.php +++ b/src/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php @@ -16,7 +16,7 @@ * * @author Bernhard Schussek */ -class UnmodifiableEventDispatcher implements EventDispatcherInterface +class ImmutableEventDispatcher implements EventDispatcherInterface { /** * The proxied dispatcher. diff --git a/src/Symfony/Component/EventDispatcher/Tests/UnmodifiableEventDispatcherTest.php b/src/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php similarity index 91% rename from src/Symfony/Component/EventDispatcher/Tests/UnmodifiableEventDispatcherTest.php rename to src/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php index d2502b1957c5..6402f89fa5fd 100644 --- a/src/Symfony/Component/EventDispatcher/Tests/UnmodifiableEventDispatcherTest.php +++ b/src/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php @@ -12,13 +12,13 @@ namespace Symfony\Component\EventDispatcher\Tests; use Symfony\Component\EventDispatcher\Event; -use Symfony\Component\EventDispatcher\UnmodifiableEventDispatcher; +use Symfony\Component\EventDispatcher\ImmutableEventDispatcher; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * @author Bernhard Schussek */ -class UnmodifiableEventDispatcherTest extends \PHPUnit_Framework_TestCase +class ImmutableEventDispatcherTest extends \PHPUnit_Framework_TestCase { /** * @var \PHPUnit_Framework_MockObject_MockObject @@ -26,14 +26,14 @@ class UnmodifiableEventDispatcherTest extends \PHPUnit_Framework_TestCase private $innerDispatcher; /** - * @var UnmodifiableEventDispatcher + * @var ImmutableEventDispatcher */ private $dispatcher; protected function setUp() { $this->innerDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'); - $this->dispatcher = new UnmodifiableEventDispatcher($this->innerDispatcher); + $this->dispatcher = new ImmutableEventDispatcher($this->innerDispatcher); } public function testDispatchDelegates()