Bläddra i källkod

[EventDispatcher] tweaked public @api

Fabien Potencier 14 år sedan
förälder
incheckning
dd23402e94

+ 6 - 0
src/Symfony/Component/EventDispatcher/Event.php

@@ -37,6 +37,8 @@ namespace Symfony\Component\EventDispatcher;
  * @author  Jonathan Wage <jonwage@gmail.com>
  * @author  Roman Borschel <roman@code-factory.org>
  * @author  Bernhard Schussek <bschussek@gmail.com>
+ *
+ * @api
  */
 class Event
 {
@@ -50,6 +52,8 @@ class Event
      *
      * @see Event::stopPropagation
      * @return Boolean Whether propagation was already stopped for this event.
+     *
+     * @api
      */
     public function isPropagationStopped()
     {
@@ -62,6 +66,8 @@ class Event
      * If multiple event listeners are connected to the same event, no
      * further event listener will be triggered once any trigger calls
      * stopPropagation().
+     *
+     * @api
      */
     public function stopPropagation()
     {

+ 2 - 4
src/Symfony/Component/EventDispatcher/EventDispatcher.php

@@ -61,8 +61,6 @@ class EventDispatcher implements EventDispatcherInterface
 
     /**
      * @see EventDispatcherInterface::getListeners
-     *
-     * @api
      */
     public function getListeners($eventName = null)
     {
@@ -89,8 +87,6 @@ class EventDispatcher implements EventDispatcherInterface
 
     /**
      * @see EventDispatcherInterface::hasListeners
-     *
-     * @api
      */
     public function hasListeners($eventName = null)
     {
@@ -126,6 +122,8 @@ class EventDispatcher implements EventDispatcherInterface
 
     /**
      * @see EventDispatcherInterface::addSubscriber
+     *
+     * @api
      */
     public function addSubscriber(EventSubscriberInterface $subscriber)
     {

+ 0 - 4
src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php

@@ -79,8 +79,6 @@ interface EventDispatcherInterface
      *
      * @return array The event listeners for the specified event, or all event
      *               listeners by event name.
-     *
-     * @api
      */
     function getListeners($eventName = null);
 
@@ -91,8 +89,6 @@ interface EventDispatcherInterface
      *
      * @return Boolean TRUE if the specified event has any listeners, FALSE
      *                 otherwise.
-     *
-     * @api
      */
     function hasListeners($eventName = null);
 }

+ 4 - 0
src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php

@@ -33,6 +33,8 @@ namespace Symfony\Component\EventDispatcher;
  * @author  Jonathan Wage <jonwage@gmail.com>
  * @author  Roman Borschel <roman@code-factory.org>
  * @author  Bernhard Schussek <bschussek@gmail.com>
+ *
+ * @api
  */
 interface EventSubscriberInterface
 {
@@ -50,6 +52,8 @@ interface EventSubscriberInterface
      *  * array('eventName' => array('methodName', $priority))
      *
      * @return array The event names to listen to
+     *
+     * @api
      */
     static function getSubscribedEvents();
 }