File: 0001-Embed-interop-container-almost-void-and-already-depr.patch

package info (click to toggle)
php-zend-eventmanager 3.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 972 kB
  • sloc: php: 3,295; makefile: 13; xml: 7
file content (77 lines) | stat: -rw-r--r-- 2,456 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 22 Mar 2020 11:07:42 -1000
Subject: Embed interop-container (almost void and already deprecated) copy
 for tests

---
 Interop/Container/ContainerInterface.php           | 15 +++++++++++++++
 Interop/Container/Exception/ContainerException.php | 15 +++++++++++++++
 Interop/Container/Exception/NotFoundException.php  | 15 +++++++++++++++
 3 files changed, 45 insertions(+)
 create mode 100644 Interop/Container/ContainerInterface.php
 create mode 100644 Interop/Container/Exception/ContainerException.php
 create mode 100644 Interop/Container/Exception/NotFoundException.php

diff --git a/Interop/Container/ContainerInterface.php b/Interop/Container/ContainerInterface.php
new file mode 100644
index 0000000..a75468f
--- /dev/null
+++ b/Interop/Container/ContainerInterface.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
+ */
+
+namespace Interop\Container;
+
+use Psr\Container\ContainerInterface as PsrContainerInterface;
+
+/**
+ * Describes the interface of a container that exposes methods to read its entries.
+ */
+interface ContainerInterface extends PsrContainerInterface
+{
+}
diff --git a/Interop/Container/Exception/ContainerException.php b/Interop/Container/Exception/ContainerException.php
new file mode 100644
index 0000000..3964061
--- /dev/null
+++ b/Interop/Container/Exception/ContainerException.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
+ */
+
+namespace Interop\Container\Exception;
+
+use Psr\Container\ContainerExceptionInterface as PsrContainerException;
+
+/**
+ * Base interface representing a generic exception in a container.
+ */
+interface ContainerException extends PsrContainerException
+{
+}
diff --git a/Interop/Container/Exception/NotFoundException.php b/Interop/Container/Exception/NotFoundException.php
new file mode 100644
index 0000000..031b3ab
--- /dev/null
+++ b/Interop/Container/Exception/NotFoundException.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
+ */
+
+namespace Interop\Container\Exception;
+
+use Psr\Container\NotFoundExceptionInterface as PsrNotFoundException;
+
+/**
+ * No entry was found in the container.
+ */
+interface NotFoundException extends ContainerException, PsrNotFoundException
+{
+}