Created
June 27, 2019 15:35
-
-
Save Zayon/8ec7608d2fe0cd4de669d075160ff1fa to your computer and use it in GitHub Desktop.
fixtures-blogpost protect databases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** @var Connection[] $connections */ | |
$connections = $doctrine->getConnections(); | |
foreach ($connections as $connection) { | |
if ('pdo_sqlite' !== $connection->getDriver()->getName()) { | |
throw new \RuntimeException('Meaningful message here'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment