Skip to content
This repository was archived by the owner on Jul 2, 2026. It is now read-only.

Commit f1e6180

Browse files
sreichelcmuench
andauthored
fix autoloader (#1641)
* Added tests for latest OpenMage version * Added tests for latest OpenMage version * run tests? * Added latest release * revert workflow * chore(deploy): add operator parameter to version comparison * chore: update version to 3.0.1 * fix autoloader - thanks @justinbeaty * fix tests - remove v20.16 for now --------- Co-authored-by: Christian Münch <christian@muench-worms.de>
1 parent a58d7cb commit f1e6180

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/test-openmage-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
openmage_version: ["20.16.0"]
14+
openmage_version: ["20.15.0"]
1515
php_version: ["8.5", "8.1"]
1616
mysql_version: ["8.0", "5.7"]
1717

config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ commands:
159159

160160
N98\Magento\Command\Installer\InstallCommand:
161161
magento-packages:
162-
- name: openmage-20.16.0
163-
package: openmage/magento-lts
164-
version: 20.16.0
165-
extra:
166-
sample-data: sample-data-1.9.2.4
167162
- name: openmage-20.15.0
168163
package: openmage/magento-lts
169164
version: 20.15.0

src/N98/MagerunBootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function createApplication(?ClassLoader $classLoader = null): Appl
3434
*/
3535
public static function getLoader(): ClassLoader
3636
{
37-
$projectBasedir = getcwd();
37+
$projectBasedir = __DIR__ . '/../..';
3838
if (!($loader = self::includeIfExists($projectBasedir . '/vendor/autoload.php')) instanceof ClassLoader
3939
&& !($loader = self::includeIfExists($projectBasedir . '/../../autoload.php')) instanceof ClassLoader
4040
) {

0 commit comments

Comments
 (0)