Add vendor files to dist

This commit is contained in:
FreeScout
2026-08-23 22:28:51 -07:00
parent 63b008c6d2
commit a9572ca50a
5 changed files with 10 additions and 421 deletions

View File

@@ -29,6 +29,7 @@ return array(
'App\\Console\\Commands\\ModuleCheckLicenses' => $baseDir . '/app/Console/Commands/ModuleCheckLicenses.php', 'App\\Console\\Commands\\ModuleCheckLicenses' => $baseDir . '/app/Console/Commands/ModuleCheckLicenses.php',
'App\\Console\\Commands\\ModuleInstall' => $baseDir . '/app/Console/Commands/ModuleInstall.php', 'App\\Console\\Commands\\ModuleInstall' => $baseDir . '/app/Console/Commands/ModuleInstall.php',
'App\\Console\\Commands\\ModuleLaroute' => $baseDir . '/app/Console/Commands/ModuleLaroute.php', 'App\\Console\\Commands\\ModuleLaroute' => $baseDir . '/app/Console/Commands/ModuleLaroute.php',
'App\\Console\\Commands\\ModuleMigrate' => $baseDir . '/app/Console/Commands/ModuleMigrate.php',
'App\\Console\\Commands\\ModuleUpdate' => $baseDir . '/app/Console/Commands/ModuleUpdate.php', 'App\\Console\\Commands\\ModuleUpdate' => $baseDir . '/app/Console/Commands/ModuleUpdate.php',
'App\\Console\\Commands\\ParseEml' => $baseDir . '/app/Console/Commands/ParseEml.php', 'App\\Console\\Commands\\ParseEml' => $baseDir . '/app/Console/Commands/ParseEml.php',
'App\\Console\\Commands\\SendMonitor' => $baseDir . '/app/Console/Commands/SendMonitor.php', 'App\\Console\\Commands\\SendMonitor' => $baseDir . '/app/Console/Commands/SendMonitor.php',
@@ -56,6 +57,7 @@ return array(
'App\\Events\\UserCreatedConversationDraft' => $baseDir . '/app/Events/UserCreatedConversationDraft.php', 'App\\Events\\UserCreatedConversationDraft' => $baseDir . '/app/Events/UserCreatedConversationDraft.php',
'App\\Events\\UserCreatedThreadDraft' => $baseDir . '/app/Events/UserCreatedThreadDraft.php', 'App\\Events\\UserCreatedThreadDraft' => $baseDir . '/app/Events/UserCreatedThreadDraft.php',
'App\\Events\\UserDeleted' => $baseDir . '/app/Events/UserDeleted.php', 'App\\Events\\UserDeleted' => $baseDir . '/app/Events/UserDeleted.php',
'App\\Events\\UserMovedConversation' => $baseDir . '/app/Events/UserMovedConversation.php',
'App\\Events\\UserReplied' => $baseDir . '/app/Events/UserReplied.php', 'App\\Events\\UserReplied' => $baseDir . '/app/Events/UserReplied.php',
'App\\Exceptions\\Handler' => $baseDir . '/app/Exceptions/Handler.php', 'App\\Exceptions\\Handler' => $baseDir . '/app/Exceptions/Handler.php',
'App\\FailedJob' => $baseDir . '/app/FailedJob.php', 'App\\FailedJob' => $baseDir . '/app/FailedJob.php',
@@ -1712,8 +1714,8 @@ return array(
'Illuminate\\Routing\\ViewController' => $vendorDir . '/laravel/framework/src/Illuminate/Routing/ViewController.php', 'Illuminate\\Routing\\ViewController' => $vendorDir . '/laravel/framework/src/Illuminate/Routing/ViewController.php',
'Illuminate\\Session\\CacheBasedSessionHandler' => $baseDir . '/overrides/laravel/framework/src/Illuminate/Session/CacheBasedSessionHandler.php', 'Illuminate\\Session\\CacheBasedSessionHandler' => $baseDir . '/overrides/laravel/framework/src/Illuminate/Session/CacheBasedSessionHandler.php',
'Illuminate\\Session\\Console\\SessionTableCommand' => $vendorDir . '/laravel/framework/src/Illuminate/Session/Console/SessionTableCommand.php', 'Illuminate\\Session\\Console\\SessionTableCommand' => $vendorDir . '/laravel/framework/src/Illuminate/Session/Console/SessionTableCommand.php',
'Illuminate\\Session\\CookieSessionHandler' => $vendorDir . '/laravel/framework/src/Illuminate/Session/CookieSessionHandler.php', 'Illuminate\\Session\\CookieSessionHandler' => $baseDir . '/overrides/laravel/framework/src/Illuminate/Session/CookieSessionHandler.php',
'Illuminate\\Session\\DatabaseSessionHandler' => $vendorDir . '/laravel/framework/src/Illuminate/Session/DatabaseSessionHandler.php', 'Illuminate\\Session\\DatabaseSessionHandler' => $baseDir . '/overrides/laravel/framework/src/Illuminate/Session/DatabaseSessionHandler.php',
'Illuminate\\Session\\EncryptedStore' => $vendorDir . '/laravel/framework/src/Illuminate/Session/EncryptedStore.php', 'Illuminate\\Session\\EncryptedStore' => $vendorDir . '/laravel/framework/src/Illuminate/Session/EncryptedStore.php',
'Illuminate\\Session\\ExistenceAwareInterface' => $vendorDir . '/laravel/framework/src/Illuminate/Session/ExistenceAwareInterface.php', 'Illuminate\\Session\\ExistenceAwareInterface' => $vendorDir . '/laravel/framework/src/Illuminate/Session/ExistenceAwareInterface.php',
'Illuminate\\Session\\FileSessionHandler' => $baseDir . '/overrides/laravel/framework/src/Illuminate/Session/FileSessionHandler.php', 'Illuminate\\Session\\FileSessionHandler' => $baseDir . '/overrides/laravel/framework/src/Illuminate/Session/FileSessionHandler.php',

View File

@@ -1034,6 +1034,7 @@ class ComposerStaticInitbf8dc242a640d7c740f283f226d0bdb4
'App\\Console\\Commands\\ModuleCheckLicenses' => __DIR__ . '/../..' . '/app/Console/Commands/ModuleCheckLicenses.php', 'App\\Console\\Commands\\ModuleCheckLicenses' => __DIR__ . '/../..' . '/app/Console/Commands/ModuleCheckLicenses.php',
'App\\Console\\Commands\\ModuleInstall' => __DIR__ . '/../..' . '/app/Console/Commands/ModuleInstall.php', 'App\\Console\\Commands\\ModuleInstall' => __DIR__ . '/../..' . '/app/Console/Commands/ModuleInstall.php',
'App\\Console\\Commands\\ModuleLaroute' => __DIR__ . '/../..' . '/app/Console/Commands/ModuleLaroute.php', 'App\\Console\\Commands\\ModuleLaroute' => __DIR__ . '/../..' . '/app/Console/Commands/ModuleLaroute.php',
'App\\Console\\Commands\\ModuleMigrate' => __DIR__ . '/../..' . '/app/Console/Commands/ModuleMigrate.php',
'App\\Console\\Commands\\ModuleUpdate' => __DIR__ . '/../..' . '/app/Console/Commands/ModuleUpdate.php', 'App\\Console\\Commands\\ModuleUpdate' => __DIR__ . '/../..' . '/app/Console/Commands/ModuleUpdate.php',
'App\\Console\\Commands\\ParseEml' => __DIR__ . '/../..' . '/app/Console/Commands/ParseEml.php', 'App\\Console\\Commands\\ParseEml' => __DIR__ . '/../..' . '/app/Console/Commands/ParseEml.php',
'App\\Console\\Commands\\SendMonitor' => __DIR__ . '/../..' . '/app/Console/Commands/SendMonitor.php', 'App\\Console\\Commands\\SendMonitor' => __DIR__ . '/../..' . '/app/Console/Commands/SendMonitor.php',
@@ -1061,6 +1062,7 @@ class ComposerStaticInitbf8dc242a640d7c740f283f226d0bdb4
'App\\Events\\UserCreatedConversationDraft' => __DIR__ . '/../..' . '/app/Events/UserCreatedConversationDraft.php', 'App\\Events\\UserCreatedConversationDraft' => __DIR__ . '/../..' . '/app/Events/UserCreatedConversationDraft.php',
'App\\Events\\UserCreatedThreadDraft' => __DIR__ . '/../..' . '/app/Events/UserCreatedThreadDraft.php', 'App\\Events\\UserCreatedThreadDraft' => __DIR__ . '/../..' . '/app/Events/UserCreatedThreadDraft.php',
'App\\Events\\UserDeleted' => __DIR__ . '/../..' . '/app/Events/UserDeleted.php', 'App\\Events\\UserDeleted' => __DIR__ . '/../..' . '/app/Events/UserDeleted.php',
'App\\Events\\UserMovedConversation' => __DIR__ . '/../..' . '/app/Events/UserMovedConversation.php',
'App\\Events\\UserReplied' => __DIR__ . '/../..' . '/app/Events/UserReplied.php', 'App\\Events\\UserReplied' => __DIR__ . '/../..' . '/app/Events/UserReplied.php',
'App\\Exceptions\\Handler' => __DIR__ . '/../..' . '/app/Exceptions/Handler.php', 'App\\Exceptions\\Handler' => __DIR__ . '/../..' . '/app/Exceptions/Handler.php',
'App\\FailedJob' => __DIR__ . '/../..' . '/app/FailedJob.php', 'App\\FailedJob' => __DIR__ . '/../..' . '/app/FailedJob.php',
@@ -2717,8 +2719,8 @@ class ComposerStaticInitbf8dc242a640d7c740f283f226d0bdb4
'Illuminate\\Routing\\ViewController' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Routing/ViewController.php', 'Illuminate\\Routing\\ViewController' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Routing/ViewController.php',
'Illuminate\\Session\\CacheBasedSessionHandler' => __DIR__ . '/../..' . '/overrides/laravel/framework/src/Illuminate/Session/CacheBasedSessionHandler.php', 'Illuminate\\Session\\CacheBasedSessionHandler' => __DIR__ . '/../..' . '/overrides/laravel/framework/src/Illuminate/Session/CacheBasedSessionHandler.php',
'Illuminate\\Session\\Console\\SessionTableCommand' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Session/Console/SessionTableCommand.php', 'Illuminate\\Session\\Console\\SessionTableCommand' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Session/Console/SessionTableCommand.php',
'Illuminate\\Session\\CookieSessionHandler' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Session/CookieSessionHandler.php', 'Illuminate\\Session\\CookieSessionHandler' => __DIR__ . '/../..' . '/overrides/laravel/framework/src/Illuminate/Session/CookieSessionHandler.php',
'Illuminate\\Session\\DatabaseSessionHandler' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Session/DatabaseSessionHandler.php', 'Illuminate\\Session\\DatabaseSessionHandler' => __DIR__ . '/../..' . '/overrides/laravel/framework/src/Illuminate/Session/DatabaseSessionHandler.php',
'Illuminate\\Session\\EncryptedStore' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Session/EncryptedStore.php', 'Illuminate\\Session\\EncryptedStore' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Session/EncryptedStore.php',
'Illuminate\\Session\\ExistenceAwareInterface' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Session/ExistenceAwareInterface.php', 'Illuminate\\Session\\ExistenceAwareInterface' => __DIR__ . '/..' . '/laravel/framework/src/Illuminate/Session/ExistenceAwareInterface.php',
'Illuminate\\Session\\FileSessionHandler' => __DIR__ . '/../..' . '/overrides/laravel/framework/src/Illuminate/Session/FileSessionHandler.php', 'Illuminate\\Session\\FileSessionHandler' => __DIR__ . '/../..' . '/overrides/laravel/framework/src/Illuminate/Session/FileSessionHandler.php',

View File

@@ -3,7 +3,7 @@
'name' => 'freescout-helpdesk/freescout', 'name' => 'freescout-helpdesk/freescout',
'pretty_version' => 'dev-master', 'pretty_version' => 'dev-master',
'version' => 'dev-master', 'version' => 'dev-master',
'reference' => '71e77d7b5a8cd0f74616d87e5fe63b5e533f32fa', 'reference' => '63b008c6d23ab8d8a78ccf0a616c83901250ce8e',
'type' => 'library', 'type' => 'library',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',
'aliases' => array(), 'aliases' => array(),
@@ -175,7 +175,7 @@
'freescout-helpdesk/freescout' => array( 'freescout-helpdesk/freescout' => array(
'pretty_version' => 'dev-master', 'pretty_version' => 'dev-master',
'version' => 'dev-master', 'version' => 'dev-master',
'reference' => '71e77d7b5a8cd0f74616d87e5fe63b5e533f32fa', 'reference' => '63b008c6d23ab8d8a78ccf0a616c83901250ce8e',
'type' => 'library', 'type' => 'library',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',
'aliases' => array(), 'aliases' => array(),

View File

@@ -1,121 +0,0 @@
<?php
namespace Illuminate\Session;
use SessionHandlerInterface;
use Illuminate\Support\InteractsWithTime;
use Symfony\Component\HttpFoundation\Request;
use Illuminate\Contracts\Cookie\QueueingFactory as CookieJar;
class CookieSessionHandler implements SessionHandlerInterface
{
use InteractsWithTime;
/**
* The cookie jar instance.
*
* @var \Illuminate\Contracts\Cookie\Factory
*/
protected $cookie;
/**
* The request instance.
*
* @var \Symfony\Component\HttpFoundation\Request
*/
protected $request;
/**
* The number of minutes the session should be valid.
*
* @var int
*/
protected $minutes;
/**
* Create a new cookie driven handler instance.
*
* @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
* @param int $minutes
* @return void
*/
public function __construct(CookieJar $cookie, $minutes)
{
$this->cookie = $cookie;
$this->minutes = $minutes;
}
/**
* {@inheritdoc}
*/
public function open($savePath, $sessionName)
{
return true;
}
/**
* {@inheritdoc}
*/
public function close()
{
return true;
}
/**
* {@inheritdoc}
*/
public function read($sessionId)
{
$value = $this->request->cookies->get($sessionId) ?: '';
if (! is_null($decoded = json_decode($value, true)) && is_array($decoded)) {
if (isset($decoded['expires']) && $this->currentTime() <= $decoded['expires']) {
return $decoded['data'];
}
}
return '';
}
/**
* {@inheritdoc}
*/
public function write($sessionId, $data)
{
$this->cookie->queue($sessionId, json_encode([
'data' => $data,
'expires' => $this->availableAt($this->minutes * 60),
]), $this->minutes);
return true;
}
/**
* {@inheritdoc}
*/
public function destroy($sessionId)
{
$this->cookie->queue($this->cookie->forget($sessionId));
return true;
}
/**
* {@inheritdoc}
*/
public function gc($lifetime)
{
return true;
}
/**
* Set the request instance.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return void
*/
public function setRequest(Request $request)
{
$this->request = $request;
}
}

View File

@@ -1,294 +0,0 @@
<?php
namespace Illuminate\Session;
use Illuminate\Support\Arr;
use SessionHandlerInterface;
use Illuminate\Support\Carbon;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Database\QueryException;
use Illuminate\Support\InteractsWithTime;
use Illuminate\Database\ConnectionInterface;
use Illuminate\Contracts\Container\Container;
class DatabaseSessionHandler implements SessionHandlerInterface, ExistenceAwareInterface
{
use InteractsWithTime;
/**
* The database connection instance.
*
* @var \Illuminate\Database\ConnectionInterface
*/
protected $connection;
/**
* The name of the session table.
*
* @var string
*/
protected $table;
/**
* The number of minutes the session should be valid.
*
* @var int
*/
protected $minutes;
/**
* The container instance.
*
* @var \Illuminate\Contracts\Container\Container
*/
protected $container;
/**
* The existence state of the session.
*
* @var bool
*/
protected $exists;
/**
* Create a new database session handler instance.
*
* @param \Illuminate\Database\ConnectionInterface $connection
* @param string $table
* @param int $minutes
* @param \Illuminate\Contracts\Container\Container|null $container
* @return void
*/
public function __construct(ConnectionInterface $connection, $table, $minutes, Container $container = null)
{
$this->table = $table;
$this->minutes = $minutes;
$this->container = $container;
$this->connection = $connection;
}
/**
* {@inheritdoc}
*/
public function open($savePath, $sessionName)
{
return true;
}
/**
* {@inheritdoc}
*/
public function close()
{
return true;
}
/**
* {@inheritdoc}
*/
public function read($sessionId)
{
$session = (object) $this->getQuery()->find($sessionId);
if ($this->expired($session)) {
$this->exists = true;
return '';
}
if (isset($session->payload)) {
$this->exists = true;
return base64_decode($session->payload);
}
return '';
}
/**
* Determine if the session is expired.
*
* @param \stdClass $session
* @return bool
*/
protected function expired($session)
{
return isset($session->last_activity) &&
$session->last_activity < Carbon::now()->subMinutes($this->minutes)->getTimestamp();
}
/**
* {@inheritdoc}
*/
public function write($sessionId, $data)
{
$payload = $this->getDefaultPayload($data);
if (! $this->exists) {
$this->read($sessionId);
}
if ($this->exists) {
$this->performUpdate($sessionId, $payload);
} else {
$this->performInsert($sessionId, $payload);
}
return $this->exists = true;
}
/**
* Perform an insert operation on the session ID.
*
* @param string $sessionId
* @param string $payload
* @return bool|null
*/
protected function performInsert($sessionId, $payload)
{
try {
return $this->getQuery()->insert(Arr::set($payload, 'id', $sessionId));
} catch (QueryException $e) {
$this->performUpdate($sessionId, $payload);
}
}
/**
* Perform an update operation on the session ID.
*
* @param string $sessionId
* @param string $payload
* @return int
*/
protected function performUpdate($sessionId, $payload)
{
return $this->getQuery()->where('id', $sessionId)->update($payload);
}
/**
* Get the default payload for the session.
*
* @param string $data
* @return array
*/
protected function getDefaultPayload($data)
{
$payload = [
'payload' => base64_encode($data),
'last_activity' => $this->currentTime(),
];
if (! $this->container) {
return $payload;
}
return tap($payload, function (&$payload) {
$this->addUserInformation($payload)
->addRequestInformation($payload);
});
}
/**
* Add the user information to the session payload.
*
* @param array $payload
* @return $this
*/
protected function addUserInformation(&$payload)
{
if ($this->container->bound(Guard::class)) {
$payload['user_id'] = $this->userId();
}
return $this;
}
/**
* Get the currently authenticated user's ID.
*
* @return mixed
*/
protected function userId()
{
return $this->container->make(Guard::class)->id();
}
/**
* Add the request information to the session payload.
*
* @param array $payload
* @return $this
*/
protected function addRequestInformation(&$payload)
{
if ($this->container->bound('request')) {
$payload = array_merge($payload, [
'ip_address' => $this->ipAddress(),
'user_agent' => $this->userAgent(),
]);
}
return $this;
}
/**
* Get the IP address for the current request.
*
* @return string
*/
protected function ipAddress()
{
return $this->container->make('request')->ip();
}
/**
* Get the user agent for the current request.
*
* @return string
*/
protected function userAgent()
{
return substr((string) $this->container->make('request')->header('User-Agent'), 0, 500);
}
/**
* {@inheritdoc}
*/
public function destroy($sessionId)
{
$this->getQuery()->where('id', $sessionId)->delete();
return true;
}
/**
* {@inheritdoc}
*/
public function gc($lifetime)
{
$this->getQuery()->where('last_activity', '<=', $this->currentTime() - $lifetime)->delete();
}
/**
* Get a fresh query builder instance for the table.
*
* @return \Illuminate\Database\Query\Builder
*/
protected function getQuery()
{
return $this->connection->table($this->table);
}
/**
* Set the existence state for the session.
*
* @param bool $value
* @return $this
*/
public function setExists($value)
{
$this->exists = $value;
return $this;
}
}