mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-30 13:13:24 +00:00
[Web] Update composer libraries
This commit is contained in:
1297 files changed
+71585
-24460
No files matched your search
@@ -7,6 +7,16 @@ use Psr\Container\ContainerInterface;
|
||||
|
||||
interface Container extends ContainerInterface
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @template TClass of object
|
||||
*
|
||||
* @param string|class-string<TClass> $id
|
||||
* @return ($id is class-string<TClass> ? TClass : mixed)
|
||||
*/
|
||||
public function get(string $id);
|
||||
|
||||
/**
|
||||
* Determine if the given abstract type has been bound.
|
||||
*
|
||||
@@ -30,7 +40,7 @@ interface Container extends ContainerInterface
|
||||
* Assign a set of tags to a given binding.
|
||||
*
|
||||
* @param array|string $abstracts
|
||||
* @param array|mixed ...$tags
|
||||
* @param mixed ...$tags
|
||||
* @return void
|
||||
*/
|
||||
public function tag($abstracts, $tags);
|
||||
@@ -46,7 +56,7 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* Register a binding with the container.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @param \Closure|string $abstract
|
||||
* @param \Closure|string|null $concrete
|
||||
* @param bool $shared
|
||||
* @return void
|
||||
@@ -65,7 +75,7 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* Register a binding if it hasn't already been registered.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @param \Closure|string $abstract
|
||||
* @param \Closure|string|null $concrete
|
||||
* @param bool $shared
|
||||
* @return void
|
||||
@@ -75,7 +85,7 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* Register a shared binding in the container.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @param \Closure|string $abstract
|
||||
* @param \Closure|string|null $concrete
|
||||
* @return void
|
||||
*/
|
||||
@@ -84,7 +94,7 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* Register a shared binding if it hasn't already been registered.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @param \Closure|string $abstract
|
||||
* @param \Closure|string|null $concrete
|
||||
* @return void
|
||||
*/
|
||||
@@ -93,7 +103,7 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* Register a scoped binding in the container.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @param \Closure|string $abstract
|
||||
* @param \Closure|string|null $concrete
|
||||
* @return void
|
||||
*/
|
||||
@@ -102,7 +112,7 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* Register a scoped binding if it hasn't already been registered.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @param \Closure|string $abstract
|
||||
* @param \Closure|string|null $concrete
|
||||
* @return void
|
||||
*/
|
||||
@@ -111,7 +121,7 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* "Extend" an abstract type in the container.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @param \Closure|string $abstract
|
||||
* @param \Closure $closure
|
||||
* @return void
|
||||
*
|
||||
@@ -122,9 +132,11 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* Register an existing instance as shared in the container.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @param mixed $instance
|
||||
* @return mixed
|
||||
* @template TInstance of mixed
|
||||
*
|
||||
* @param \Closure|string $abstract
|
||||
* @param TInstance $instance
|
||||
* @return TInstance
|
||||
*/
|
||||
public function instance($abstract, $instance);
|
||||
|
||||
@@ -132,7 +144,7 @@ interface Container extends ContainerInterface
|
||||
* Add a contextual binding to the container.
|
||||
*
|
||||
* @param string $concrete
|
||||
* @param string $abstract
|
||||
* @param \Closure|string $abstract
|
||||
* @param \Closure|string $implementation
|
||||
* @return void
|
||||
*/
|
||||
@@ -149,8 +161,10 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* Get a closure to resolve the given type from the container.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @return \Closure
|
||||
* @template TClass of object
|
||||
*
|
||||
* @param string|class-string<TClass> $abstract
|
||||
* @return ($abstract is class-string<TClass> ? \Closure(): TClass : \Closure(): mixed)
|
||||
*/
|
||||
public function factory($abstract);
|
||||
|
||||
@@ -164,9 +178,11 @@ interface Container extends ContainerInterface
|
||||
/**
|
||||
* Resolve the given type from the container.
|
||||
*
|
||||
* @param string $abstract
|
||||
* @template TClass of object
|
||||
*
|
||||
* @param string|class-string<TClass> $abstract
|
||||
* @param array $parameters
|
||||
* @return mixed
|
||||
* @return ($abstract is class-string<TClass> ? TClass : mixed)
|
||||
*
|
||||
* @throws \Illuminate\Contracts\Container\BindingResolutionException
|
||||
*/
|
||||
@@ -197,7 +213,7 @@ interface Container extends ContainerInterface
|
||||
* @param \Closure|null $callback
|
||||
* @return void
|
||||
*/
|
||||
public function beforeResolving($abstract, Closure $callback = null);
|
||||
public function beforeResolving($abstract, ?Closure $callback = null);
|
||||
|
||||
/**
|
||||
* Register a new resolving callback.
|
||||
@@ -206,7 +222,7 @@ interface Container extends ContainerInterface
|
||||
* @param \Closure|null $callback
|
||||
* @return void
|
||||
*/
|
||||
public function resolving($abstract, Closure $callback = null);
|
||||
public function resolving($abstract, ?Closure $callback = null);
|
||||
|
||||
/**
|
||||
* Register a new after resolving callback.
|
||||
@@ -215,5 +231,5 @@ interface Container extends ContainerInterface
|
||||
* @param \Closure|null $callback
|
||||
* @return void
|
||||
*/
|
||||
public function afterResolving($abstract, Closure $callback = null);
|
||||
public function afterResolving($abstract, ?Closure $callback = null);
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Container;
|
||||
|
||||
interface ContextualAttribute
|
||||
{
|
||||
//
|
||||
}
|
||||
+3
-3
@@ -16,7 +16,7 @@ interface ContextualBindingBuilder
|
||||
* Define the implementation for the contextual binding.
|
||||
*
|
||||
* @param \Closure|string|array $implementation
|
||||
* @return void
|
||||
* @return $this
|
||||
*/
|
||||
public function give($implementation);
|
||||
|
||||
@@ -24,7 +24,7 @@ interface ContextualBindingBuilder
|
||||
* Define tagged services to be used as the implementation for the contextual binding.
|
||||
*
|
||||
* @param string $tag
|
||||
* @return void
|
||||
* @return $this
|
||||
*/
|
||||
public function giveTagged($tag);
|
||||
|
||||
@@ -33,7 +33,7 @@ interface ContextualBindingBuilder
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $default
|
||||
* @return void
|
||||
* @return $this
|
||||
*/
|
||||
public function giveConfig($key, $default = null);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Container;
|
||||
|
||||
/**
|
||||
* @method static newInstance(): static
|
||||
*/
|
||||
interface SelfBuilding
|
||||
{
|
||||
}
|
||||
Reference in new issue
Block a user