Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mautic\InstallBundle\Exception;
|
||||
|
||||
class AlreadyInstalledException extends \Exception
|
||||
{
|
||||
protected $message = 'Mautic is already installed.';
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mautic\InstallBundle\Exception;
|
||||
|
||||
class DatabaseVersionTooOldException extends \Exception
|
||||
{
|
||||
public function __construct(
|
||||
private string $currentVersion,
|
||||
) {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current database version as reported by the database itself.
|
||||
*/
|
||||
public function getCurrentVersion(): string
|
||||
{
|
||||
return $this->currentVersion;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user