mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-10-16 11:41:57 +00:00
[s3_storage] Bump version of akeeba/s3 to version 2.3.1
- Address https://github.com/friendica/friendica/issues/12011#issuecomment-1854681792
This commit is contained in:
parent
9daa11eb10
commit
3e74af9775
61 changed files with 1472 additions and 708 deletions
35
s3_storage/vendor/akeeba/s3/src/aliasing.php
vendored
Normal file
35
s3_storage/vendor/akeeba/s3/src/aliasing.php
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
/**
|
||||
* Akeeba Engine
|
||||
*
|
||||
* @package akeebaengine
|
||||
* @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
/**
|
||||
* Automatic aliasing of the old namespace to the new, as you use each old class.
|
||||
*/
|
||||
spl_autoload_register(
|
||||
static function (string $className)
|
||||
{
|
||||
$oldNS = 'Akeeba\Engine\Postproc\Connector\S3v4';
|
||||
$newNS = 'Akeeba\S3';
|
||||
|
||||
$className = trim($className, '\\');
|
||||
|
||||
if (strpos($className, $oldNS) !== 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$newClassName = $newNS . '\\' . trim(substr($className, strlen($oldNS)), '\\');
|
||||
|
||||
if (class_exists($newClassName, true))
|
||||
{
|
||||
class_alias($newClassName, $className, false);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue