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:
@@ -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();
|
||||
}
|
||||
}
|
@@ -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);
|
||||
}
|
||||
}
|
@@ -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}
|
Reference in New Issue
Block a user