-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new docs for the event manager project. #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
If this documentation is not helping to answer questions you have about the | ||
Doctrine DBAL, don't panic. You can get help from different sources: | ||
|
||
- Gitter chat room `#doctrine/event-manager <https://gitter.im/doctrine/event-manager>`_ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
docs/en/index.rst
Outdated
--------------- | ||
|
||
The best way to get started is with the :doc:`Introduction <reference/index#introduction>` section | ||
in the documentation. Use the sidebar to browse other documentation for the Doctrine PHP DBAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: DBAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it's not DBAL, Its event manager.
docs/en/reference/index.rst
Outdated
|
||
public function __construct(EventManager $eventManager) | ||
{ | ||
$eventManager->addEventListener(array(self::preFoo, self::postFoo), $this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[]
instead of array()
docs/en/reference/index.rst
Outdated
|
||
.. code-block:: php | ||
|
||
$eventManager->removeEventListener(array(TestEvent::preFoo, TestEvent::postFoo), $testEvent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[]
instead of array()
docs/en/reference/index.rst
Outdated
|
||
public function getSubscribedEvents() : array | ||
{ | ||
return array(TestEvent::preFoo); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[]
instead of array()
Fixes #4