Merge pull request '1.1.0 - Fix critical autoloading issue' (#1) from dev into main

Reviewed-on: #1
This commit is contained in:
Daniel Winning 2025-04-24 15:40:44 +00:00
commit bec504d21c
4 changed files with 16 additions and 5 deletions

View file

@ -2,8 +2,12 @@
All notable changes to this project will be documented in this file.
## [1.1.0] - 2025-04-24
### Fixed
- Fixed a critical autoloading issue after the package is globally installed.
## [1.0.3] - 2025-04-24
## Fixed
### Fixed
- Fixed typo in `composer.json` description field.
## [1.0.2] - 2025-04-24

View file

@ -5,7 +5,7 @@
# Loom Spinner CLI
<p>
<img src="https://img.shields.io/badge/Version-1.0.3-blue" alt="Version 1.0.3">
<img src="https://img.shields.io/badge/Version-1.1.0-blue" alt="Version 1.1.0">
</p>
A streamlined environment management tool for PHP developers.

View file

@ -7,7 +7,14 @@ use Loom\Spinner\Command\StartCommand;
use Loom\Spinner\Command\StopCommand;
use Symfony\Component\Console\Application;
require dirname(__DIR__) . '/vendor/autoload.php';
$localAutoloadPath = sprintf('%s/vendor/autoload.php', dirname(__DIR__));
$installedAutoloadPath = sprintf('%s/autoload.php', dirname(__DIR__, 3));
if (file_exists($localAutoloadPath)) {
require $localAutoloadPath;
} else {
require $installedAutoloadPath;
}
$application = new Application('Loom Spinner');

View file

@ -1,7 +1,7 @@
{
"name": "loomlabs/loom-spinner-cli",
"description": "A simple command-line Docker environment spinner for PHP",
"version": "1.0.3",
"description": "A simple command-line Docker environment spinner for PHP.",
"version": "1.1.0",
"autoload": {
"psr-4": {
"Loom\\Spinner\\": "src/"