forked from wallabag/wallabag
Stop using ContainerAwareInterface in migrations
This commit is contained in:
@ -121,9 +121,7 @@ final class Version20190129120000 extends WallabagMigration
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
foreach ($this->settings as $setting) {
|
||||
$settingEnabled = $this->container
|
||||
->get('doctrine.orm.default_entity_manager')
|
||||
->getConnection()
|
||||
$settingEnabled = $this->connection
|
||||
->fetchOne('SELECT * FROM ' . $this->getTable('craue_config_setting') . " WHERE name = '" . $setting['name'] . "'");
|
||||
|
||||
if (false !== $settingEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user