1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-23 08:43:02 +02:00

[ticket/17530] Better classes naming

PHPBB-17530
This commit is contained in:
rxu
2025-07-19 15:17:18 +07:00
parent 980b6e6f9e
commit 86195ac0f9
16 changed files with 41 additions and 39 deletions

View File

@@ -13,8 +13,6 @@
namespace phpbb\db\doctrine;
use InvalidArgumentException;
/**
* Helper class to generate Doctrine DBAL configuration.
*/
@@ -32,7 +30,7 @@ class connection_parameter_factory
*
* @return array Doctrine DBAL connection parameters.
*
* @throws InvalidArgumentException If a required parameter is empty or null.
* @throws \InvalidArgumentException If a required parameter is empty or null.
*/
public static function get_configuration(
string $driver,
@@ -68,7 +66,7 @@ class connection_parameter_factory
*
* @return array Doctrine's DBAL configuration for SQLite.
*
* @throws InvalidArgumentException If a required parameter is empty or null.
* @throws \InvalidArgumentException If a required parameter is empty or null.
*/
private static function build_connection_parameters(
array $params,
@@ -87,7 +85,7 @@ class connection_parameter_factory
if (empty($user) || empty($name))
{
throw new InvalidArgumentException('Required database parameter is not set.');
throw new \InvalidArgumentException('Required database parameter is not set.');
}
$params = array_merge($params, [