public function getManager($alias, Database $database)
    {
        $reporter = $this->getReporter();

        $config = new Config([]);
        $config->setContainer($this->raikiri());
        $config->initialize($alias, $database);

        $env = $config->getEnvironment($this->application->getEnv());
        $reporter->writeln('<info>using migration path</info> ' . $config->getMigrationPath());
        $reporter->writeln('<info>using environment</info> ' . $this->application->getEnv());
        $reporter->writeln('<info>using adapter</info> ' . $env['adapter']);
        $reporter->writeln('<info>using database</info> ' . $env['name']);

        $manager = new Manager($config, new ArrayInput([]), $reporter);
        $manager->setContainer($this->raikiri());
        return $manager;
    }