for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Micro framework package.
*
* (c) Stanislau Komar <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Micro\Plugin\Doctrine\Configuration\Driver;
use Micro\Framework\Kernel\Configuration\PluginRoutingKeyConfiguration;
/**
* @author Stanislau Komar <[email protected]>
class PdoPgSqlConfiguration extends PluginRoutingKeyConfiguration implements DriverConfigurationInterface
{
use HostPortDbTrait;
use UserPasswordTrait;
public function getParameters(): array
return [
'driver' => static::name(),
'user' => $this->getUser(),
'host' => $this->getHost(),
'password' => $this->getPassword(),
'port' => $this->getPort(5432),
'dbname' => $this->getDb(),
];
}
public static function name(): string
return 'pdo_pgsql';