mirror of
https://gh.wpcy.net/https://github.com/aspirepress/aspireupdate.git
synced 2026-07-16 09:46:32 +08:00
* Decoupled translations using `afragen/translations-updater` dependency (#178) Moved translations into separate repo and using git updater code to load translations off github repo translations. --------- Signed-off-by: Andy Fragen <andy@thefragens.com> * Change textdomain from mixed case to lowercase (#191) * update mixed case textdomain to lowercase of aspireupdate references * rename `AspireUpdate` repository to `aspireupdate` * change text domain header * add composer script to more easily create POT file * requires WP-CLI installed locally Signed-off-by: Andy Fragen <andy@thefragens.com> * update referenced to mixed case repository (#193) * add GA to generate POT on tag/release (#196) * run GA on push to `main` and feature branch (#197) * update afragen/translations-updater with error caching/logging (#199) * update afragen/translations-updater with error caching/logging * fix return of false due to validation failure * return WP_Error instead of false * better error handling * updates to afragen/translations-updater * composer update * update error log messaging * update library * Fix version number in POT workflow (#202) * Set POT generation action version to `2.0`. (#204) * Add write permissions to POT generation workflow. (#205) * 💬 POT File Regenerated --------- Signed-off-by: Andy Fragen <andy@thefragens.com> Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Co-authored-by: WordPress BOT <githubactionbot+wp@gmail.com>
811 B
811 B
Autoloader
This repository contains a generic class autoloader that will load classes from a PSR-4 namespace root directory and an alternate directory/location for vendor or classmap of classes necessary for your plugin.
PRs welcome, especially for additional class aliases as you find needing them. Please refer to the readme in that folder for additional information on how to create these.
This is an alternative to composer's autoload creator.
$root = [ 'My_Namespace' => 'path/to/my-namespace' ];
$classmap = [
'Extra_Class' => 'path/to/extra-class.php',
'AnotherClass' => 'path/to/class-another.php',
];
require_once 'Autoloader.php';
new \Fragen\Autoloader( $root, $classmap );
Changelog
Credits
Built by Andy Fragen