1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +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

@@ -19,13 +19,13 @@ use Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware;
* PostgreSQL Doctrine driver middleware.
* Makes use of phpBB's PostgreSQL specific platform.
*/
class phpbb_postgresql_driver extends AbstractDriverMiddleware
class driver extends AbstractDriverMiddleware
{
/**
* {@inheritDoc}
*/
public function createDatabasePlatformForVersion($version)
{
return new phpbb_postgresql_platform();
return new platform();
}
}

View File

@@ -14,15 +14,16 @@
namespace phpbb\db\middleware\postgresql;
use Doctrine\DBAL\Driver;
use phpbb\db\middleware\postgresql\driver as postgresql_driver;
/**
* PostgreSQL Doctrine middleware.
* Makes use of phpBB's PostgreSQL specific platform.
*/
class phpbb_postgresql_middleware implements Driver\Middleware
class middleware implements Driver\Middleware
{
public function wrap(Driver $driver): Driver
{
return new phpbb_postgresql_driver($driver);
return new postgresql_driver($driver);
}
}

View File

@@ -31,7 +31,7 @@ use Doctrine\DBAL\Types\Type;
* to stay compatible with the existing DB we have to change its
* naming and not ours.
*/
class phpbb_postgresql_platform extends PostgreSQLPlatform
class platform extends PostgreSQLPlatform
{
/**
* {@inheritdoc}