summaryrefslogtreecommitdiff
path: root/vendor/symfony/event-dispatcher-contracts
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-11-23 14:53:24 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-11-23 17:58:41 +0000
commitd501c45d339d4a2d06248f9197d7875a4df14e48 (patch)
tree6354050630acc6b16124600a9a6597fcb9fb599c /vendor/symfony/event-dispatcher-contracts
parentb5f5afdbfd53e7e50eb7aa9959fdbdfed101a6e5 (diff)
downloadwebtrees-d501c45d339d4a2d06248f9197d7875a4df14e48.tar.gz
webtrees-d501c45d339d4a2d06248f9197d7875a4df14e48.tar.bz2
webtrees-d501c45d339d4a2d06248f9197d7875a4df14e48.zip
Remove dependency on symfony httpfoundation/kernel
Diffstat (limited to 'vendor/symfony/event-dispatcher-contracts')
-rw-r--r--vendor/symfony/event-dispatcher-contracts/.gitignore3
-rw-r--r--vendor/symfony/event-dispatcher-contracts/Event.php96
-rw-r--r--vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php58
-rw-r--r--vendor/symfony/event-dispatcher-contracts/LICENSE19
-rw-r--r--vendor/symfony/event-dispatcher-contracts/README.md9
-rw-r--r--vendor/symfony/event-dispatcher-contracts/composer.json34
6 files changed, 0 insertions, 219 deletions
diff --git a/vendor/symfony/event-dispatcher-contracts/.gitignore b/vendor/symfony/event-dispatcher-contracts/.gitignore
deleted file mode 100644
index c49a5d8df5..0000000000
--- a/vendor/symfony/event-dispatcher-contracts/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-vendor/
-composer.lock
-phpunit.xml
diff --git a/vendor/symfony/event-dispatcher-contracts/Event.php b/vendor/symfony/event-dispatcher-contracts/Event.php
deleted file mode 100644
index 84f60f3ed0..0000000000
--- a/vendor/symfony/event-dispatcher-contracts/Event.php
+++ /dev/null
@@ -1,96 +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\Contracts\EventDispatcher;
-
-use Psr\EventDispatcher\StoppableEventInterface;
-
-if (interface_exists(StoppableEventInterface::class)) {
- /**
- * 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>
- * @author Nicolas Grekas <p@tchwork.com>
- */
- class Event implements StoppableEventInterface
- {
- private $propagationStopped = false;
-
- /**
- * Returns whether further event listeners should be triggered.
- */
- public function isPropagationStopped(): bool
- {
- 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(): void
- {
- $this->propagationStopped = true;
- }
- }
-} else {
- /**
- * 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>
- * @author Nicolas Grekas <p@tchwork.com>
- */
- class Event
- {
- private $propagationStopped = false;
-
- /**
- * Returns whether further event listeners should be triggered.
- */
- public function isPropagationStopped(): bool
- {
- 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(): void
- {
- $this->propagationStopped = true;
- }
- }
-}
diff --git a/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php b/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php
deleted file mode 100644
index 2d470af920..0000000000
--- a/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php
+++ /dev/null
@@ -1,58 +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\Contracts\EventDispatcher;
-
-use Psr\EventDispatcher\EventDispatcherInterface as PsrEventDispatcherInterface;
-
-if (interface_exists(PsrEventDispatcherInterface::class)) {
- /**
- * Allows providing hooks on domain-specific lifecycles by dispatching events.
- */
- interface EventDispatcherInterface extends PsrEventDispatcherInterface
- {
- /**
- * Dispatches an event to all registered listeners.
- *
- * For BC with Symfony 4, the $eventName argument is not declared explicitly on the
- * signature of the method. Implementations that are not bound by this BC constraint
- * MUST declare it explicitly, as allowed by PHP.
- *
- * @param object $event The event to pass to the event handlers/listeners
- * @param string|null $eventName The name of the event to dispatch. If not supplied,
- * the class of $event should be used instead.
- *
- * @return object The passed $event MUST be returned
- */
- public function dispatch($event/*, string $eventName = null*/);
- }
-} else {
- /**
- * Allows providing hooks on domain-specific lifecycles by dispatching events.
- */
- interface EventDispatcherInterface
- {
- /**
- * Dispatches an event to all registered listeners.
- *
- * For BC with Symfony 4, the $eventName argument is not declared explicitly on the
- * signature of the method. Implementations that are not bound by this BC constraint
- * MUST declare it explicitly, as allowed by PHP.
- *
- * @param object $event The event to pass to the event handlers/listeners
- * @param string|null $eventName The name of the event to dispatch. If not supplied,
- * the class of $event should be used instead.
- *
- * @return object The passed $event MUST be returned
- */
- public function dispatch($event/*, string $eventName = null*/);
- }
-}
diff --git a/vendor/symfony/event-dispatcher-contracts/LICENSE b/vendor/symfony/event-dispatcher-contracts/LICENSE
deleted file mode 100644
index 3f853aaf35..0000000000
--- a/vendor/symfony/event-dispatcher-contracts/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2018-2019 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/vendor/symfony/event-dispatcher-contracts/README.md b/vendor/symfony/event-dispatcher-contracts/README.md
deleted file mode 100644
index fb051c73fc..0000000000
--- a/vendor/symfony/event-dispatcher-contracts/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
-Symfony EventDispatcher Contracts
-=================================
-
-A set of abstractions extracted out of the Symfony components.
-
-Can be used to build on semantics that the Symfony components proved useful - and
-that already have battle tested implementations.
-
-See https://github.com/symfony/contracts/blob/master/README.md for more information.
diff --git a/vendor/symfony/event-dispatcher-contracts/composer.json b/vendor/symfony/event-dispatcher-contracts/composer.json
deleted file mode 100644
index 55802a491d..0000000000
--- a/vendor/symfony/event-dispatcher-contracts/composer.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "symfony/event-dispatcher-contracts",
- "type": "library",
- "description": "Generic abstractions related to dispatching event",
- "keywords": ["abstractions", "contracts", "decoupling", "interfaces", "interoperability", "standards"],
- "homepage": "https://symfony.com",
- "license": "MIT",
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "require": {
- "php": "^7.1.3"
- },
- "suggest": {
- "psr/event-dispatcher": "",
- "symfony/event-dispatcher-implementation": ""
- },
- "autoload": {
- "psr-4": { "Symfony\\Contracts\\EventDispatcher\\": "" }
- },
- "minimum-stability": "dev",
- "extra": {
- "branch-alias": {
- "dev-master": "1.1-dev"
- }
- }
-}