ForkCMS\Bundle\InstallerBundle\Service\ForkInstaller::buildDatabase PHP Method

buildDatabase() protected method

protected buildDatabase ( InstallationData $data )
$data ForkCMS\Bundle\InstallerBundle\Entity\InstallationData
    protected function buildDatabase(InstallationData $data)
    {
        // put a new instance of the database in the container
        $database = new \SpoonDatabase('mysql', $data->getDbHostname(), $data->getDbUsername(), $data->getDbPassword(), $data->getDbDatabase(), $data->getDbPort());
        $database->execute('SET CHARACTER SET :charset, NAMES :charset, time_zone = "+0:00"', array('charset' => 'utf8mb4'));
        $this->container->set('database', $database);
    }