<?php

namespace Plainwork\DatabaseWordPress;

use Plainwork\Core\App;
use Plainwork\Database\Database;

class Boot
{
    public function __construct(App $app)
    {
        $app->onBoot(Database::class, function ($db) {
            $adapter = new WordPressDatabaseAdapter();
            $db->setAdapter($adapter);
        });
    }
}
