forked from wallabag/wallabag
Stop using ContainerAwareInterface in migrations
This commit is contained in:
@ -45,10 +45,8 @@ final class Version20190826204730 extends WallabagMigration
|
||||
|
||||
public function postUp(Schema $schema): void
|
||||
{
|
||||
foreach ($this->container->getParameter('wallabag.default_ignore_origin_instance_rules') as $entity) {
|
||||
$previous_rule = $this->container
|
||||
->get('doctrine.orm.default_entity_manager')
|
||||
->getConnection()
|
||||
foreach ($this->defaultIgnoreOriginInstanceRules as $entity) {
|
||||
$previous_rule = $this->connection
|
||||
->fetchOne('SELECT * FROM ' . $this->getTable('ignore_origin_instance_rule') . " WHERE rule = '" . $entity['rule'] . "'");
|
||||
|
||||
if (false === $previous_rule) {
|
||||
|
||||
Reference in New Issue
Block a user