mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Reintroduce Webklex IMAP for ticket processing as PHP-IMAP is no longer being developed. This is optional for now and considered beta can be found in cron/ticket_email_parser.php
This commit is contained in:
49
plugins/vendor/illuminate/support/functions.php
vendored
Normal file
49
plugins/vendor/illuminate/support/functions.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Support;
|
||||
|
||||
use Illuminate\Support\Defer\DeferredCallback;
|
||||
use Illuminate\Support\Defer\DeferredCallbackCollection;
|
||||
use Symfony\Component\Process\PhpExecutableFinder;
|
||||
|
||||
if (! function_exists('Illuminate\Support\defer')) {
|
||||
/**
|
||||
* Defer execution of the given callback.
|
||||
*
|
||||
* @param callable|null $callback
|
||||
* @param string|null $name
|
||||
* @param bool $always
|
||||
* @return ($callback is null ? \Illuminate\Support\Defer\DeferredCallbackCollection : \Illuminate\Support\Defer\DeferredCallback)
|
||||
*/
|
||||
function defer(?callable $callback = null, ?string $name = null, bool $always = false): DeferredCallback|DeferredCallbackCollection
|
||||
{
|
||||
if ($callback === null) {
|
||||
return app(DeferredCallbackCollection::class);
|
||||
}
|
||||
|
||||
return tap(
|
||||
new DeferredCallback($callback, $name, $always),
|
||||
fn ($deferred) => app(DeferredCallbackCollection::class)[] = $deferred
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('Illuminate\Support\php_binary')) {
|
||||
/**
|
||||
* Determine the PHP Binary.
|
||||
*/
|
||||
function php_binary(): string
|
||||
{
|
||||
return (new PhpExecutableFinder)->find(false) ?: 'php';
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('Illuminate\Support\artisan_binary')) {
|
||||
/**
|
||||
* Determine the proper Artisan executable.
|
||||
*/
|
||||
function artisan_binary(): string
|
||||
{
|
||||
return defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user