Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 621
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
namespace Doctrine\DBAL;
3
namespace Doctrine\DBAL;
4
 
4
 
-
 
5
use Doctrine\DBAL\Platforms\AbstractPlatform;
Zeile 5... Zeile 6...
5
use Doctrine\DBAL\Platforms\AbstractPlatform;
6
use Doctrine\DBAL\Types\Type;
6
use Doctrine\DBAL\Types\Type;
7
use SensitiveParameter;
7
 
8
 
8
use function get_class;
9
use function get_class;
Zeile 59... Zeile 60...
59
            ),
60
            ),
60
        );
61
        );
61
    }
62
    }
Zeile 62... Zeile 63...
62
 
63
 
63
    /** @param string|null $url The URL that was provided in the connection parameters (if any). */
64
    /** @param string|null $url The URL that was provided in the connection parameters (if any). */
-
 
65
    public static function driverRequired(
-
 
66
        #[SensitiveParameter]
64
    public static function driverRequired(?string $url = null): self
67
        ?string $url = null
65
    {
68
    ): self {
66
        if ($url !== null) {
69
        if ($url !== null) {
67
            return new self(
70
            return new self(
68
                sprintf(
71
                sprintf(
69
                    "The options 'driver' or 'driverClass' are mandatory if a connection URL without scheme " .
72
                    "The options 'driver' or 'driverClass' are mandatory if a connection URL without scheme " .