tao-test/app/tao/migrations/Version202107131252262234_tao.php

32 lines
696 B
PHP
Raw Permalink Normal View History

2022-08-29 20:14:13 +02:00
<?php
declare(strict_types=1);
namespace oat\tao\migrations;
use Doctrine\DBAL\Schema\Schema;
use oat\tao\model\action\ActionBlackList;
use oat\tao\scripts\tools\migrations\AbstractMigration;
final class Version202107131252262234_tao extends AbstractMigration
{
public function getDescription(): string
{
return 'Register ActionBlackList';
}
public function up(Schema $schema): void
{
$this->getServiceManager()->register(
ActionBlackList::SERVICE_ID,
new ActionBlackList()
);
}
public function down(Schema $schema): void
{
$this->getServiceManager()->unregister(ActionBlackList::SERVICE_ID);
}
}