Skip to content

Commit

Permalink
Mark all command classes as final and internal
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 9, 2023
1 parent 3c499fb commit 1a89cf4
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 10 deletions.
4 changes: 3 additions & 1 deletion Command/ClearMetadataCacheDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@

/**
* Command to clear the metadata cache of the various cache drivers.
*
* @internal since version 5.0
*/
class ClearMetadataCacheDoctrineODMCommand extends MetadataCommand
final class ClearMetadataCacheDoctrineODMCommand extends MetadataCommand
{
/** @return void */
protected function configure()
Expand Down
4 changes: 3 additions & 1 deletion Command/CreateSchemaDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
/**
* Command to create the database schema for a set of classes based on their
* mappings.
*
* @internal since version 5.0
*/
class CreateSchemaDoctrineODMCommand extends CreateCommand
final class CreateSchemaDoctrineODMCommand extends CreateCommand
{
/** @return void */
protected function configure()
Expand Down
4 changes: 3 additions & 1 deletion Command/DropSchemaDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
/**
* Command to drop the database schema for a set of classes based on their
* mappings.
*
* @internal since version 5.0
*/
class DropSchemaDoctrineODMCommand extends DropCommand
final class DropSchemaDoctrineODMCommand extends DropCommand
{
/** @return void */
protected function configure()
Expand Down
4 changes: 3 additions & 1 deletion Command/GenerateHydratorsDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@

/**
* Generate the Doctrine ORM document hydrators to your cache directory.
*
* @internal since version 5.0
*/
class GenerateHydratorsDoctrineODMCommand extends GenerateHydratorsCommand
final class GenerateHydratorsDoctrineODMCommand extends GenerateHydratorsCommand
{
/** @return void */
protected function configure()
Expand Down
4 changes: 3 additions & 1 deletion Command/GenerateProxiesDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@

/**
* Generate the Doctrine ORM document proxies to your cache directory.
*
* @internal since version 5.0
*/
class GenerateProxiesDoctrineODMCommand extends GenerateProxiesCommand
final class GenerateProxiesDoctrineODMCommand extends GenerateProxiesCommand
{
/** @return void */
protected function configure()
Expand Down
4 changes: 3 additions & 1 deletion Command/InfoDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@

/**
* Show information about mapped documents
*
* @internal since version 5.0
*/
class InfoDoctrineODMCommand extends DoctrineODMCommand
final class InfoDoctrineODMCommand extends DoctrineODMCommand
{
/** @return void */
protected function configure()
Expand Down
4 changes: 3 additions & 1 deletion Command/LoadDataFixturesDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@

/**
* Load data fixtures from bundles.
*
* @internal since version 5.0
*/
class LoadDataFixturesDoctrineODMCommand extends DoctrineODMCommand
final class LoadDataFixturesDoctrineODMCommand extends DoctrineODMCommand
{
public function __construct(?ManagerRegistry $registry = null, ?KernelInterface $kernel = null, private ?SymfonyFixturesLoaderInterface $fixturesLoader = null)
{
Expand Down
4 changes: 3 additions & 1 deletion Command/QueryDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@

/**
* Execute a Doctrine MongoDB ODM query and output the results.
*
* @internal since version 5.0
*/
class QueryDoctrineODMCommand extends QueryCommand
final class QueryDoctrineODMCommand extends QueryCommand
{
/** @return void */
protected function configure()
Expand Down
4 changes: 3 additions & 1 deletion Command/ShardDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
/**
* Command to shard database collections for a set of classes based on their
* mappings.
*
* @internal since version 5.0
*/
class ShardDoctrineODMCommand extends ShardCommand
final class ShardDoctrineODMCommand extends ShardCommand
{
/** @return void */
protected function configure()
Expand Down
4 changes: 3 additions & 1 deletion Command/UpdateSchemaDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
/**
* Command to update the database schema for a set of classes based on their
* mappings.
*
* @internal since version 5.0
*/
class UpdateSchemaDoctrineODMCommand extends UpdateCommand
final class UpdateSchemaDoctrineODMCommand extends UpdateCommand
{
/** @return void */
protected function configure()
Expand Down

0 comments on commit 1a89cf4

Please sign in to comment.