1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 03:34:04 +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;
* MySQL Doctrine driver middleware.
* Makes use of phpBB's MySQL specific platform.
*/
class phpbb_mysql_driver extends AbstractDriverMiddleware
class driver extends AbstractDriverMiddleware
{
/**
* {@inheritDoc}
*/
public function createDatabasePlatformForVersion($version)
{
return new phpbb_mysql_platform();
return new platform();
}
}

View File

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

View File

@@ -23,7 +23,7 @@ use Doctrine\DBAL\Schema\TableDiff;
* If it's indexed as primary key, it should be declared as NOT NULL
* because MySQL primary key columns cannot be NULL.
*/
class phpbb_mysql_platform extends AbstractMySQLPlatform
class platform extends AbstractMySQLPlatform
{
/**
* {@inheritDoc}