Skip to content

Commit

Permalink
fix: set default app name
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Dec 18, 2024
1 parent cb44d85 commit 8eb3ae6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/N98/Magento/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,14 @@ class Application extends BaseApplication
public function __construct($autoloader = null)
{
$this->autoloader = $autoloader;
parent::__construct(self::APP_NAME, self::APP_VERSION);

$appName = self::APP_NAME;

if (strpos($appName, 'application_name') !== false) {
$appName = 'n98-magerun';
}

parent::__construct($appName, self::APP_VERSION);
}

/**
Expand Down

0 comments on commit 8eb3ae6

Please sign in to comment.