for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Xervice\Database;
use Xervice\Core\Config\AbstractConfig;
class DatabaseConfig extends AbstractConfig
{
public const PROPEL = 'propel';
public const PROPEL_CONF_DIR = 'propel.conf.dir';
public const PROPEL_CONF_ADAPTER = 'propel.conf.adapter';
public const PROPEL_CONF_HOST = 'propel.conf.host';
public const PROPEL_CONF_PORT = 'propel.conf.port';
public const PROPEL_CONF_DBNAME = 'propel.conf.dbname';
public const PROPEL_CONF_USER = 'propel.conf.user';
public const PROPEL_CONF_PASSWORD = 'propel.conf.password';
public const PROPEL_COMMAND = 'propel.command';
public const SCHEMA_PATHS = 'propel.schema.path';
public const SCHEMA_TARGET = 'propel.schema.target';
/**
* @return string
*/
public function getSchemaTarget(): string
return $this->get(self::SCHEMA_TARGET, '');
}
* @return array
public function getSchemaPaths(): array
return $this->get(self::SCHEMA_PATHS, []);
public function getPropelConfig() : array
return $this->get(self::PROPEL);
public function getConfDir() : string
return $this->get(self::PROPEL_CONF_DIR);
public function getPropelCommand() : string
return $this->get(self::PROPEL_COMMAND, 'vendor/bin/propel');