Skip to content

Commit 7a732ee

Browse files
authored
Merge pull request #707 from driehle/feature/final-classes
Mark `Module`, `ConfigProvider`, option classes and factories as final
2 parents 49b641d + da66832 commit 7a732ee

23 files changed

+23
-23
lines changed

src/ConfigProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Config provider for DoctrineORMModule config
99
*/
10-
class ConfigProvider
10+
final class ConfigProvider
1111
{
1212
/**
1313
* @return mixed[]

src/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* Base module for Doctrine ORM.
1919
*/
20-
class Module implements
20+
final class Module implements
2121
ControllerProviderInterface,
2222
ConfigProviderInterface,
2323
DependencyIndicatorInterface,

src/Options/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* Configuration options for an ORM Configuration
2121
*/
22-
class Configuration extends DBALConfiguration
22+
final class Configuration extends DBALConfiguration
2323
{
2424
/**
2525
* Set the cache key for the metadata cache. Cache key

src/Options/DBALConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* DBAL Connection options
1515
*/
16-
class DBALConnection extends AbstractOptions
16+
final class DBALConnection extends AbstractOptions
1717
{
1818
/**
1919
* Set the configuration key for the Configuration. Configuration key

src/Options/EntityManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Laminas\Stdlib\AbstractOptions;
88

9-
class EntityManager extends AbstractOptions
9+
final class EntityManager extends AbstractOptions
1010
{
1111
/**
1212
* Set the configuration key for the Configuration. Configuration key

src/Options/EntityResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use function class_exists;
1111
use function sprintf;
1212

13-
class EntityResolver extends AbstractOptions
13+
final class EntityResolver extends AbstractOptions
1414
{
1515
/**
1616
* Set the configuration key for the EventManager. Event manager key

src/Options/SQLLoggerCollectorOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Configuration options for an collector
1111
*/
12-
class SQLLoggerCollectorOptions extends AbstractOptions
12+
final class SQLLoggerCollectorOptions extends AbstractOptions
1313
{
1414
/** @var string name to be assigned to the collector */
1515
protected string $name = 'orm_default';

src/Options/SecondLevelCacheConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Configuration options for Second Level Cache
1111
*/
12-
class SecondLevelCacheConfiguration extends AbstractOptions
12+
final class SecondLevelCacheConfiguration extends AbstractOptions
1313
{
1414
/**
1515
* Enable the second level cache configuration

src/Service/CliConfiguratorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Interop\Container\ContainerInterface;
99
use Laminas\ServiceManager\Factory\FactoryInterface;
1010

11-
class CliConfiguratorFactory implements FactoryInterface
11+
final class CliConfiguratorFactory implements FactoryInterface
1212
{
1313
/**
1414
* {@inheritDoc}

src/Service/ConfigurationFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use function method_exists;
1919
use function sprintf;
2020

21-
class ConfigurationFactory extends DoctrineConfigurationFactory
21+
final class ConfigurationFactory extends DoctrineConfigurationFactory
2222
{
2323
/**
2424
* {@inheritDoc}

0 commit comments

Comments
 (0)