16 lines
587 B
PHP
16 lines
587 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Knuckles\Scribe\Exceptions;
|
||
|
|
|
||
|
|
class DatabaseTransactionsNotSupported extends \RuntimeException implements ScribeException
|
||
|
|
{
|
||
|
|
public static function create(string $connectionName, string $driverName)
|
||
|
|
{
|
||
|
|
return new self(
|
||
|
|
"Database driver [{$driverName}] for connection [{$connectionName}] does not support transactions."
|
||
|
|
." To allow Scribe to proceed, remove \"{$connectionName}\" from the \"database_connections_to_transact\" config array."
|
||
|
|
.' Note that any changes to your database will be persisted.'
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|