Skip to content

Commit

Permalink
update file
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 authored Mar 19, 2024
1 parent 11cd06a commit 4db5d34
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/libraries/Console/ConsoleApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,19 @@ final class ConsoleApplication
public function __construct()
{
$this->commands = new Commands();
$this->version ??= $this->getVersion();
$this->version ??= 1.0 ?? $this->getVersion();
}

/**
* Get the singleton instance of the Application class
*/
public static function getInstance(): self
{
if (self::$instance === null) {
self::$instance = new self();
}

return self::$instance;
}

/**
Expand All @@ -69,7 +81,7 @@ public function run()
}

/**
* Returns the Ax logo.
* Returns the AxmCli logo.
* @return string
*/
public function rawLogo()
Expand Down

0 comments on commit 4db5d34

Please sign in to comment.