PluginProbe
FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP / trunk
FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP vtrunk
2.4.0 trunk 1.0.1 1.1.0 1.1.1 1.2.0 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.71 2.2.72 2.2.73 2.2.80 2.2.81 All 32 releases
fluent-smtp / includes / Core / ContainerContract.php

ContainerContract.php in FluentSMTP – WP Mail SMTP Plugin with Amazon SES, SendGrid, Mailgun, Postmark, Cloudflare, toSend, Gmail and Any SMTP trunk, at includes/Core/ContainerContract.php

144 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentMail\Includes\Core;
4
5 use Closure;
6
7 interface ContainerContract
8 {
9 /**
10 * Determine if the given abstract type has been bound.
11 *
12 * @param string $abstract
13 * @return bool
14 */
15 public function bound($abstract);
16
17 /**
18 * Alias a type to a different name.
19 *
20 * @param string $abstract
21 * @param string $alias
22 * @return void
23 */
24 public function alias($abstract, $alias);
25
26 /**
27 * Assign a set of tags to a given binding.
28 *
29 * @param array|string $abstracts
30 * @param array|mixed ...$tags
31 * @return void
32 */
33 public function tag($abstracts, $tags);
34
35 /**
36 * Resolve all of the bindings for a given tag.
37 *
38 * @param array $tag
39 * @return array
40 */
41 public function tagged($tag);
42
43 /**
44 * Register a binding with the container.
45 *
46 * @param string|array $abstract
47 * @param Closure|string|null $concrete
48 * @param bool $shared
49 * @return void
50 */
51 public function bind($abstract, $concrete = null, $shared = false);
52
53 /**
54 * Register a binding if it hasn't already been registered.
55 *
56 * @param string $abstract
57 * @param Closure|string|null $concrete
58 * @param bool $shared
59 * @return void
60 */
61 public function bindIf($abstract, $concrete = null, $shared = false);
62
63 /**
64 * Register a shared binding in the container.
65 *
66 * @param string $abstract
67 * @param Closure|string|null $concrete
68 * @return void
69 */
70 public function singleton($abstract, $concrete = null);
71
72 /**
73 * "Extend" an abstract type in the container.
74 *
75 * @param string $abstract
76 * @param Closure $closure
77 * @return void
78 *
79 * @throws \InvalidArgumentException
80 */
81 public function extend($abstract, Closure $closure);
82
83 /**
84 * Register an existing instance as shared in the container.
85 *
86 * @param string $abstract
87 * @param mixed $instance
88 * @return void
89 */
90 public function instance($abstract, $instance);
91
92 /**
93 * Define a contextual binding.
94 *
95 * @param string $concrete
96 * @return ContextualBindingBuilder
97 */
98 public function when($concrete);
99 /**
100 * Resolve the given type from the container.
101 *
102 * @param string $abstract
103 * @param array $parameters
104 * @return mixed
105 */
106 public function make($abstract, $parameters = array());
107
108 /**
109 * Call the given Closure / class@method and inject its dependencies.
110 *
111 * @param callable|string $callback
112 * @param array $parameters
113 * @param string|null $defaultMethod
114 * @return mixed
115 */
116 public function call($callback, array $parameters = array(), $defaultMethod = null);
117
118 /**
119 * Determine if the given abstract type has been resolved.
120 *
121 * @param string $abstract
122 * @return bool
123 */
124 public function resolved($abstract);
125
126 /**
127 * Register a new resolving callback.
128 *
129 * @param string $abstract
130 * @param Closure $callback
131 * @return void
132 */
133 public function resolving($abstract, ?Closure $callback = null);
134
135 /**
136 * Register a new after resolving callback.
137 *
138 * @param string $abstract
139 * @param Closure $callback
140 * @return void
141 */
142 public function afterResolving($abstract, ?Closure $callback = null);
143 }
144