Skip to content

Commit

Permalink
fixup! chore: upgrade common dependencies to fix deprecated warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
antoscarface committed Oct 15, 2024
1 parent 4a30d21 commit ff8a265
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/modules/common/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
"@composer dump-autoload --working-dir ./includes --no-dev --classmap-authoritative",
"sed -i'.bak' -e 's/Composer\\\\Autoload/Wordlift_Modules_Common_Composer\\\\Autoload/' includes/vendor/composer/*.php && rm -rf includes/vendor/composer/*.php.bak",
"mv vendor/composer/autoload_files.php third-party/vendor/composer",
"@composer dump-autoload --working-dir ./includes --no-dev --classmap-authoritative",
"rm -rf vendor"
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/common/includes/vendor/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
* file that was distributed with this source code.
*/

namespace Composer\Autoload;
namespace Wordlift_Modules_Common_Composer\Autoload;

/**
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
*
* $loader = new \Composer\Autoload\ClassLoader();
* $loader = new \Wordlift_Modules_Common_Composer\Autoload\ClassLoader();
*
* // register classes with namespaces
* $loader->add('Symfony\Component', __DIR__.'/component');
Expand Down
8 changes: 4 additions & 4 deletions src/modules/common/includes/vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ class ComposerAutoloaderInit8bd2b6d4ccd6b50e0809e5ba62169420

public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
if ('Wordlift_Modules_Common_Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}

/**
* @return \Composer\Autoload\ClassLoader
* @return \Wordlift_Modules_Common_Composer\Autoload\ClassLoader
*/
public static function getLoader()
{
Expand All @@ -23,11 +23,11 @@ public static function getLoader()
}

spl_autoload_register(array('ComposerAutoloaderInit8bd2b6d4ccd6b50e0809e5ba62169420', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
self::$loader = $loader = new \Wordlift_Modules_Common_Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit8bd2b6d4ccd6b50e0809e5ba62169420', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit8bd2b6d4ccd6b50e0809e5ba62169420::getInitializer($loader));
call_user_func(\Wordlift_Modules_Common_Composer\Autoload\ComposerStaticInit8bd2b6d4ccd6b50e0809e5ba62169420::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_static.php @generated by Composer

namespace Composer\Autoload;
namespace Wordlift_Modules_Common_Composer\Autoload;

class ComposerStaticInit8bd2b6d4ccd6b50e0809e5ba62169420
{
Expand Down

0 comments on commit ff8a265

Please sign in to comment.