Skip to content

Commit

Permalink
Mark all command and compiler pass classes as final (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN authored Dec 10, 2023
1 parent 95c4ba9 commit b07f049
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Command/ClearMetadataCacheDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @internal since version 4.7.0
*/
class ClearMetadataCacheDoctrineODMCommand extends MetadataCommand
final class ClearMetadataCacheDoctrineODMCommand extends MetadataCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Command/CreateSchemaDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @internal since version 4.7.0
*/
class CreateSchemaDoctrineODMCommand extends CreateCommand
final class CreateSchemaDoctrineODMCommand extends CreateCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Command/DropSchemaDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @internal since version 4.7.0
*/
class DropSchemaDoctrineODMCommand extends DropCommand
final class DropSchemaDoctrineODMCommand extends DropCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Command/GenerateHydratorsDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @internal since version 4.7.0
*/
class GenerateHydratorsDoctrineODMCommand extends GenerateHydratorsCommand
final class GenerateHydratorsDoctrineODMCommand extends GenerateHydratorsCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Command/GenerateProxiesDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @internal since version 4.7.0
*/
class GenerateProxiesDoctrineODMCommand extends GenerateProxiesCommand
final class GenerateProxiesDoctrineODMCommand extends GenerateProxiesCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Command/InfoDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @internal since version 4.7.0
*/
class InfoDoctrineODMCommand extends DoctrineODMCommand
final class InfoDoctrineODMCommand extends DoctrineODMCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Command/LoadDataFixturesDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
* @internal since version 4.7.0
*/
class LoadDataFixturesDoctrineODMCommand extends DoctrineODMCommand
final class LoadDataFixturesDoctrineODMCommand extends DoctrineODMCommand
{
public function __construct(ManagerRegistry $registry, private SymfonyFixturesLoaderInterface $fixturesLoader)
{
Expand Down
2 changes: 1 addition & 1 deletion Command/QueryDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @internal since version 4.7.0
*/
class QueryDoctrineODMCommand extends QueryCommand
final class QueryDoctrineODMCommand extends QueryCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Command/ShardDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @internal since version 4.7.0
*/
class ShardDoctrineODMCommand extends ShardCommand
final class ShardDoctrineODMCommand extends ShardCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Command/UpdateSchemaDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @internal since version 4.7.0
*/
class UpdateSchemaDoctrineODMCommand extends UpdateCommand
final class UpdateSchemaDoctrineODMCommand extends UpdateCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion DataCollector/CommandDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use function MongoDB\BSON\toCanonicalExtendedJSON;

/** @internal since version 4.7.0 */
class CommandDataCollector extends DataCollector
final class CommandDataCollector extends DataCollector
{
public function __construct(private CommandLogger $commandLogger)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use function sprintf;

/** @internal */
class CreateHydratorDirectoryPass implements CompilerPassInterface
final class CreateHydratorDirectoryPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container): void
{
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/CreateProxyDirectoryPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use function sprintf;

/** @internal since version 4.7.0 */
class CreateProxyDirectoryPass implements CompilerPassInterface
final class CreateProxyDirectoryPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @internal since version 4.7.0
*/
class DoctrineMongoDBMappingsPass extends RegisterMappingsPass
final class DoctrineMongoDBMappingsPass extends RegisterMappingsPass
{
/**
* You should not directly instantiate this class but use one of the
Expand Down
4 changes: 2 additions & 2 deletions UPGRADE-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ UPGRADE FROM 4.x to 5.0
`findBundle` and `findBasePathForBundle` methods from
`Doctrine\Bundle\MongoDBBundle\Command\DoctrineODMCommand` have been
removed without replacement.
* The `Doctrine\Bundle\MongoDBBundle\Command\DoctrineODMCommand` class is now
`@internal`, you should not extend from this class.
* All command and compiler pass classes are internal and final. They cannot be
used directly or extended.
* Remove support of Annotation mapping, you should use Attributes or XML instead.
* Remove `--service` option from `doctrine:mongodb:fixtures:load` command

0 comments on commit b07f049

Please sign in to comment.