From 2fdb3dd5731f68abe13ae32eda75bba92f70d77d Mon Sep 17 00:00:00 2001 From: Alex Brims Date: Thu, 10 Mar 2016 10:32:58 +0000 Subject: [PATCH] Altered single / multiple inheritance sentence The way the sentence was didn't really make sense, and was difficult to process --- components/event_dispatcher/introduction.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/event_dispatcher/introduction.rst b/components/event_dispatcher/introduction.rst index 714075900f6..823cd54a8ed 100644 --- a/components/event_dispatcher/introduction.rst +++ b/components/event_dispatcher/introduction.rst @@ -22,8 +22,8 @@ answer. Consider the real-world example where you want to provide a plugin system for your project. A plugin should be able to add methods, or do something before or after a method is executed, without interfering with other plugins. -This is not an easy problem to solve with single and multiple inheritance -(were it possible with PHP) has its own drawbacks. +This is not an easy problem to solve with single inheritance, and even if +multiple inheritance was possible with PHP, it comes with its own drawbacks. The Symfony EventDispatcher component implements the `Mediator`_ pattern in a simple and effective way to make all these things possible and to make