1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-01-03 12:09:16 +00:00

[Web] update directorytree/ldaprecord

This commit is contained in:
FreddleSpl0it
2024-02-20 10:30:11 +01:00
parent 40146839ef
commit d479d18507
481 changed files with 13919 additions and 6171 deletions

View File

@@ -57,18 +57,18 @@ interface Gate
public function after(callable $callback);
/**
* Determine if the given ability should be granted for the current user.
* Determine if all of the given abilities should be granted for the current user.
*
* @param string $ability
* @param iterable|string $ability
* @param array|mixed $arguments
* @return bool
*/
public function allows($ability, $arguments = []);
/**
* Determine if the given ability should be denied for the current user.
* Determine if any of the given abilities should be denied for the current user.
*
* @param string $ability
* @param iterable|string $ability
* @param array|mixed $arguments
* @return bool
*/

View File

@@ -0,0 +1,8 @@
<?php
namespace Illuminate\Contracts\Broadcasting;
interface ShouldBeUnique
{
//
}

View File

@@ -10,9 +10,11 @@ interface Repository extends CacheInterface
/**
* Retrieve an item from the cache and delete it.
*
* @param string $key
* @param mixed $default
* @return mixed
* @template TCacheValue
*
* @param array|string $key
* @param TCacheValue|(\Closure(): TCacheValue) $default
* @return (TCacheValue is null ? mixed : TCacheValue)
*/
public function pull($key, $default = null);
@@ -66,28 +68,34 @@ interface Repository extends CacheInterface
/**
* Get an item from the cache, or execute the given Closure and store the result.
*
* @template TCacheValue
*
* @param string $key
* @param \DateTimeInterface|\DateInterval|int|null $ttl
* @param \Closure $callback
* @return mixed
* @param \DateTimeInterface|\DateInterval|\Closure|int|null $ttl
* @param \Closure(): TCacheValue $callback
* @return TCacheValue
*/
public function remember($key, $ttl, Closure $callback);
/**
* Get an item from the cache, or execute the given Closure and store the result forever.
*
* @template TCacheValue
*
* @param string $key
* @param \Closure $callback
* @return mixed
* @param \Closure(): TCacheValue $callback
* @return TCacheValue
*/
public function sear($key, Closure $callback);
/**
* Get an item from the cache, or execute the given Closure and store the result forever.
*
* @template TCacheValue
*
* @param string $key
* @param \Closure $callback
* @return mixed
* @param \Closure(): TCacheValue $callback
* @return TCacheValue
*/
public function rememberForever($key, Closure $callback);

View File

@@ -0,0 +1,8 @@
<?php
namespace Illuminate\Contracts\Console;
interface Isolatable
{
//
}

View File

@@ -0,0 +1,8 @@
<?php
namespace Illuminate\Contracts\Console;
interface PromptsForMissingInput
{
//
}

View File

@@ -53,6 +53,15 @@ interface Container extends ContainerInterface
*/
public function bind($abstract, $concrete = null, $shared = false);
/**
* Bind a callback to resolve with Container::call.
*
* @param array|string $method
* @param \Closure $callback
* @return void
*/
public function bindMethod($method, $callback);
/**
* Register a binding if it hasn't already been registered.
*

View File

@@ -32,7 +32,7 @@ interface ContextualBindingBuilder
* Specify the configuration item to bind as a primitive.
*
* @param string $key
* @param ?string $default
* @param mixed $default
* @return void
*/
public function giveConfig($key, $default = null);

View File

@@ -7,7 +7,7 @@ interface QueueingFactory extends Factory
/**
* Queue a cookie to send with the next response.
*
* @param array $parameters
* @param mixed ...$parameters
* @return void
*/
public function queue(...$parameters);

View File

@@ -8,8 +8,7 @@ interface Castable
* Get the name of the caster class to use when casting from / to this cast target.
*
* @param array $arguments
* @return string
* @return string|\Illuminate\Contracts\Database\Eloquent\CastsAttributes|\Illuminate\Contracts\Database\Eloquent\CastsInboundAttributes
* @return class-string<CastsAttributes|CastsInboundAttributes>|CastsAttributes|CastsInboundAttributes
*/
public static function castUsing(array $arguments);
}

View File

@@ -2,6 +2,12 @@
namespace Illuminate\Contracts\Database\Eloquent;
use Illuminate\Database\Eloquent\Model;
/**
* @template TGet
* @template TSet
*/
interface CastsAttributes
{
/**
@@ -10,19 +16,19 @@ interface CastsAttributes
* @param \Illuminate\Database\Eloquent\Model $model
* @param string $key
* @param mixed $value
* @param array $attributes
* @return mixed
* @param array<string, mixed> $attributes
* @return TGet|null
*/
public function get($model, string $key, $value, array $attributes);
public function get(Model $model, string $key, mixed $value, array $attributes);
/**
* Transform the attribute to its underlying model values.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @param string $key
* @param mixed $value
* @param array $attributes
* @param TSet|null $value
* @param array<string, mixed> $attributes
* @return mixed
*/
public function set($model, string $key, $value, array $attributes);
public function set(Model $model, string $key, mixed $value, array $attributes);
}

View File

@@ -2,6 +2,8 @@
namespace Illuminate\Contracts\Database\Eloquent;
use Illuminate\Database\Eloquent\Model;
interface CastsInboundAttributes
{
/**
@@ -13,5 +15,5 @@ interface CastsInboundAttributes
* @param array $attributes
* @return mixed
*/
public function set($model, string $key, $value, array $attributes);
public function set(Model $model, string $key, mixed $value, array $attributes);
}

View File

@@ -2,6 +2,8 @@
namespace Illuminate\Contracts\Database\Eloquent;
use Illuminate\Database\Eloquent\Model;
interface SerializesCastableAttributes
{
/**
@@ -13,5 +15,5 @@ interface SerializesCastableAttributes
* @param array $attributes
* @return mixed
*/
public function serialize($model, string $key, $value, array $attributes);
public function serialize(Model $model, string $key, mixed $value, array $attributes);
}

View File

@@ -34,6 +34,13 @@ class ModelIdentifier
*/
public $connection;
/**
* The class name of the model collection.
*
* @var string|null
*/
public $collectionClass;
/**
* Create a new model identifier.
*
@@ -50,4 +57,17 @@ class ModelIdentifier
$this->relations = $relations;
$this->connection = $connection;
}
/**
* Specify the collection class that should be used when serializing / restoring collections.
*
* @param string|null $collectionClass
* @return $this
*/
public function useCollectionClass(?string $collectionClass)
{
$this->collectionClass = $collectionClass;
return $this;
}
}

View File

@@ -0,0 +1,7 @@
<?php
namespace Illuminate\Contracts\Database\Query;
interface ConditionExpression extends Expression
{
}

View File

@@ -0,0 +1,16 @@
<?php
namespace Illuminate\Contracts\Database\Query;
use Illuminate\Database\Grammar;
interface Expression
{
/**
* Get the value of the expression.
*
* @param \Illuminate\Database\Grammar $grammar
* @return string|int|float
*/
public function getValue(Grammar $grammar);
}

View File

@@ -34,7 +34,7 @@ interface Dispatcher
*
* @param string|object $event
* @param mixed $payload
* @return array|null
* @return mixed
*/
public function until($event, $payload = []);

View File

@@ -0,0 +1,8 @@
<?php
namespace Illuminate\Contracts\Events;
interface ShouldDispatchAfterCommit
{
//
}

View File

@@ -0,0 +1,8 @@
<?php
namespace Illuminate\Contracts\Events;
interface ShouldHandleEventsAfterCommit
{
//
}

View File

@@ -46,7 +46,7 @@ interface Filesystem
* Write the contents of a file.
*
* @param string $path
* @param string|resource $contents
* @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
* @param mixed $options
* @return bool
*/

View File

@@ -45,6 +45,22 @@ interface Application extends Container
*/
public function databasePath($path = '');
/**
* Get the path to the language files.
*
* @param string $path
* @return string
*/
public function langPath($path = '');
/**
* Get the path to the public directory.
*
* @param string $path
* @return string
*/
public function publicPath($path = '');
/**
* Get the path to the resources directory.
*
@@ -64,7 +80,7 @@ interface Application extends Container
/**
* Get or check the current application environment.
*
* @param string|array $environments
* @param string|array ...$environments
* @return string|bool
*/
public function environment(...$environments);
@@ -83,6 +99,13 @@ interface Application extends Container
*/
public function runningUnitTests();
/**
* Determine if the application is running with debug mode enabled.
*
* @return bool
*/
public function hasDebugModeEnabled();
/**
* Get an instance of the maintenance mode manager implementation.
*

View File

@@ -0,0 +1,13 @@
<?php
namespace Illuminate\Contracts\Mail;
interface Attachable
{
/**
* Get an attachment instance for this entity.
*
* @return \Illuminate\Mail\Attachment
*/
public function toMailAttachment();
}

View File

@@ -10,7 +10,7 @@ interface Mailable
* Send the message using the given mailer.
*
* @param \Illuminate\Contracts\Mail\Factory|\Illuminate\Contracts\Mail\Mailer $mailer
* @return void
* @return \Illuminate\Mail\SentMessage|null
*/
public function send($mailer);

View File

@@ -25,7 +25,7 @@ interface Mailer
*
* @param string $text
* @param mixed $callback
* @return void
* @return \Illuminate\Mail\SentMessage|null
*/
public function raw($text, $callback);
@@ -35,7 +35,7 @@ interface Mailer
* @param \Illuminate\Contracts\Mail\Mailable|string|array $view
* @param array $data
* @param \Closure|string|null $callback
* @return void
* @return \Illuminate\Mail\SentMessage|null
*/
public function send($view, array $data = [], $callback = null);
}

View File

@@ -29,6 +29,13 @@ interface CursorPaginator
*/
public function fragment($fragment = null);
/**
* Add all current query string values to the paginator.
*
* @return $this
*/
public function withQueryString();
/**
* Get the URL for the previous page, or null.
*

View File

@@ -15,7 +15,7 @@ interface Paginator
/**
* Add a set of query string values to the paginator.
*
* @param array|string $key
* @param array|string|null $key
* @param string|null $value
* @return $this
*/
@@ -25,7 +25,7 @@ interface Paginator
* Get / set the URL fragment to be appended to URLs.
*
* @param string|null $fragment
* @return $this|string
* @return $this|string|null
*/
public function fragment($fragment = null);
@@ -53,14 +53,14 @@ interface Paginator
/**
* Get the "index" of the first item being paginated.
*
* @return int
* @return int|null
*/
public function firstItem();
/**
* Get the "index" of the last item being paginated.
*
* @return int
* @return int|null
*/
public function lastItem();

View File

@@ -0,0 +1,64 @@
<?php
namespace Illuminate\Contracts\Process;
interface InvokedProcess
{
/**
* Get the process ID if the process is still running.
*
* @return int|null
*/
public function id();
/**
* Send a signal to the process.
*
* @param int $signal
* @return $this
*/
public function signal(int $signal);
/**
* Determine if the process is still running.
*
* @return bool
*/
public function running();
/**
* Get the standard output for the process.
*
* @return string
*/
public function output();
/**
* Get the error output for the process.
*
* @return string
*/
public function errorOutput();
/**
* Get the latest standard output for the process.
*
* @return string
*/
public function latestOutput();
/**
* Get the latest error output for the process.
*
* @return string
*/
public function latestErrorOutput();
/**
* Wait for the process to finish.
*
* @param callable|null $output
* @return \Illuminate\Console\Process\ProcessResult
*/
public function wait(callable $output = null);
}

View File

@@ -0,0 +1,65 @@
<?php
namespace Illuminate\Contracts\Process;
interface ProcessResult
{
/**
* Get the original command executed by the process.
*
* @return string
*/
public function command();
/**
* Determine if the process was successful.
*
* @return bool
*/
public function successful();
/**
* Determine if the process failed.
*
* @return bool
*/
public function failed();
/**
* Get the exit code of the process.
*
* @return int|null
*/
public function exitCode();
/**
* Get the standard output of the process.
*
* @return string
*/
public function output();
/**
* Get the error output of the process.
*
* @return string
*/
public function errorOutput();
/**
* Throw an exception if the process failed.
*
* @param callable|null $callback
* @return $this
*/
public function throw(callable $callback = null);
/**
* Throw an exception if the process failed and the given condition is true.
*
* @param bool $condition
* @param callable|null $callback
* @return $this
*/
public function throwIf(bool $condition, callable $callback = null);
}

View File

@@ -13,7 +13,7 @@ interface Monitor
public function looping($callback);
/**
* Register a callback to be executed when a job fails after the maximum amount of retries.
* Register a callback to be executed when a job fails after the maximum number of retries.
*
* @param mixed $callback
* @return void

View File

@@ -0,0 +1,8 @@
<?php
namespace Illuminate\Contracts\Queue;
interface ShouldQueueAfterCommit extends ShouldQueue
{
//
}

View File

@@ -60,7 +60,7 @@ interface ResponseFactory
/**
* Create a new streamed response instance.
*
* @param \Closure $callback
* @param callable $callback
* @param int $status
* @param array $headers
* @return \Symfony\Component\HttpFoundation\StreamedResponse
@@ -70,7 +70,7 @@ interface ResponseFactory
/**
* Create a new streamed response instance as a file download.
*
* @param \Closure $callback
* @param callable $callback
* @param string|null $name
* @param array $headers
* @param string|null $disposition
@@ -123,7 +123,7 @@ interface ResponseFactory
/**
* Create a new redirect response to a controller action.
*
* @param string $action
* @param array|string $action
* @param mixed $parameters
* @param int $status
* @param array $headers

View File

@@ -0,0 +1,8 @@
<?php
namespace Illuminate\Contracts\Session\Middleware;
interface AuthenticatesSessions
{
//
}

View File

@@ -64,6 +64,14 @@ interface MessageBag extends Arrayable, Countable
*/
public function all($format = null);
/**
* Remove a message from the bag.
*
* @param string $key
* @return $this
*/
public function forget($key);
/**
* Get the raw messages in the container.
*

View File

@@ -18,7 +18,7 @@ interface Translator
* Get a translation according to an integer value.
*
* @param string $key
* @param \Countable|int|array $number
* @param \Countable|int|float|array $number
* @param array $replace
* @param string|null $locale
* @return string

View File

@@ -10,5 +10,5 @@ interface DataAwareRule
* @param array $data
* @return $this
*/
public function setData($data);
public function setData(array $data);
}

View File

@@ -10,10 +10,10 @@ interface Factory
* @param array $data
* @param array $rules
* @param array $messages
* @param array $customAttributes
* @param array $attributes
* @return \Illuminate\Contracts\Validation\Validator
*/
public function make(array $data, array $rules, array $messages = [], array $customAttributes = []);
public function make(array $data, array $rules, array $messages = [], array $attributes = []);
/**
* Register a custom validator extension.

View File

@@ -2,6 +2,9 @@
namespace Illuminate\Contracts\Validation;
/**
* @deprecated see ValidationRule
*/
interface ImplicitRule extends Rule
{
//

View File

@@ -0,0 +1,21 @@
<?php
namespace Illuminate\Contracts\Validation;
use Closure;
/**
* @deprecated see ValidationRule
*/
interface InvokableRule
{
/**
* Run the validation rule.
*
* @param string $attribute
* @param mixed $value
* @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail
* @return void
*/
public function __invoke(string $attribute, mixed $value, Closure $fail);
}

View File

@@ -2,6 +2,9 @@
namespace Illuminate\Contracts\Validation;
/**
* @deprecated see ValidationRule
*/
interface Rule
{
/**

View File

@@ -0,0 +1,18 @@
<?php
namespace Illuminate\Contracts\Validation;
use Closure;
interface ValidationRule
{
/**
* Run the validation rule.
*
* @param string $attribute
* @param mixed $value
* @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail
* @return void
*/
public function validate(string $attribute, mixed $value, Closure $fail): void;
}

View File

@@ -2,6 +2,8 @@
namespace Illuminate\Contracts\Validation;
use Illuminate\Validation\Validator;
interface ValidatorAwareRule
{
/**
@@ -10,5 +12,5 @@ interface ValidatorAwareRule
* @param \Illuminate\Validation\Validator $validator
* @return $this
*/
public function setValidator($validator);
public function setValidator(Validator $validator);
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Illuminate\Contracts\View;
use Exception;
class ViewCompilationException extends Exception
{
//
}

View File

@@ -14,7 +14,7 @@
}
],
"require": {
"php": "^8.0.2",
"php": "^8.1",
"psr/container": "^1.1.1|^2.0.1",
"psr/simple-cache": "^1.0|^2.0|^3.0"
},
@@ -25,7 +25,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "9.x-dev"
"dev-master": "10.x-dev"
}
},
"config": {