summaryrefslogtreecommitdiff
path: root/inc/mailgun/symfony/event-dispatcher/Event.php
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2017-03-02 22:49:24 -0500
committerCarson Fleming <cflems@cflems.net>2017-03-02 22:49:24 -0500
commitb76e2ff898b23745d4c9aaee49eeb7d88f2896ab (patch)
tree9b794be8db310a575d70165d9ebde0a183b61b01 /inc/mailgun/symfony/event-dispatcher/Event.php
parentbfcc9f7a7656a2db0c905b3c13114664f00f6c37 (diff)
downloadbulletin-b76e2ff898b23745d4c9aaee49eeb7d88f2896ab.tar.gz
Updated mailgun plugin
Diffstat (limited to 'inc/mailgun/symfony/event-dispatcher/Event.php')
-rw-r--r--inc/mailgun/symfony/event-dispatcher/Event.php120
1 files changed, 0 insertions, 120 deletions
diff --git a/inc/mailgun/symfony/event-dispatcher/Event.php b/inc/mailgun/symfony/event-dispatcher/Event.php
deleted file mode 100644
index 3ce8549..0000000
--- a/inc/mailgun/symfony/event-dispatcher/Event.php
+++ /dev/null
@@ -1,120 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\EventDispatcher;
-
-/**
- * Event is the base class for classes containing event data.
- *
- * This class contains no event data. It is used by events that do not pass
- * state information to an event handler when an event is raised.
- *
- * You can call the method stopPropagation() to abort the execution of
- * further listeners in your event listener.
- *
- * @author Guilherme Blanco <guilhermeblanco@hotmail.com>
- * @author Jonathan Wage <jonwage@gmail.com>
- * @author Roman Borschel <roman@code-factory.org>
- * @author Bernhard Schussek <bschussek@gmail.com>
- */
-class Event
-{
- /**
- * @var bool Whether no further event listeners should be triggered
- */
- private $propagationStopped = false;
-
- /**
- * @var EventDispatcherInterface Dispatcher that dispatched this event
- */
- private $dispatcher;
-
- /**
- * @var string This event's name
- */
- private $name;
-
- /**
- * Returns whether further event listeners should be triggered.
- *
- * @see Event::stopPropagation()
- *
- * @return bool Whether propagation was already stopped for this event
- */
- public function isPropagationStopped()
- {
- return $this->propagationStopped;
- }
-
- /**
- * Stops the propagation of the event to further event listeners.
- *
- * If multiple event listeners are connected to the same event, no
- * further event listener will be triggered once any trigger calls
- * stopPropagation().
- */
- public function stopPropagation()
- {
- $this->propagationStopped = true;
- }
-
- /**
- * Stores the EventDispatcher that dispatches this Event.
- *
- * @param EventDispatcherInterface $dispatcher
- *
- * @deprecated since version 2.4, to be removed in 3.0. The event dispatcher is passed to the listener call.
- */
- public function setDispatcher(EventDispatcherInterface $dispatcher)
- {
- $this->dispatcher = $dispatcher;
- }
-
- /**
- * Returns the EventDispatcher that dispatches this Event.
- *
- * @return EventDispatcherInterface
- *
- * @deprecated since version 2.4, to be removed in 3.0. The event dispatcher is passed to the listener call.
- */
- public function getDispatcher()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0. The event dispatcher instance can be received in the listener call instead.', E_USER_DEPRECATED);
-
- return $this->dispatcher;
- }
-
- /**
- * Gets the event's name.
- *
- * @return string
- *
- * @deprecated since version 2.4, to be removed in 3.0. The event name is passed to the listener call.
- */
- public function getName()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0. The event name can be received in the listener call instead.', E_USER_DEPRECATED);
-
- return $this->name;
- }
-
- /**
- * Sets the event's name property.
- *
- * @param string $name The event name
- *
- * @deprecated since version 2.4, to be removed in 3.0. The event name is passed to the listener call.
- */
- public function setName($name)
- {
- $this->name = $name;
- }
-}