Skip to content

Commit

Permalink
Mark classes as internal: command and compile pass (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN authored Dec 10, 2023
1 parent 1c10e04 commit bf6366a
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Command/ClearMetadataCacheDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Command to clear the metadata cache of the various cache drivers.
*
* @internal since version 4.7.0
*/
class ClearMetadataCacheDoctrineODMCommand extends MetadataCommand
{
Expand Down
2 changes: 2 additions & 0 deletions Command/CreateSchemaDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
/**
* Command to create the database schema for a set of classes based on their
* mappings.
*
* @internal since version 4.7.0
*/
class CreateSchemaDoctrineODMCommand extends CreateCommand
{
Expand Down
2 changes: 1 addition & 1 deletion Command/DoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Base class for Doctrine ODM console commands to extend.
*
* @internal since version 5.0
* @internal since version 4.4.0
*/
abstract class DoctrineODMCommand extends Command
{
Expand Down
2 changes: 2 additions & 0 deletions Command/DropSchemaDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
/**
* Command to drop the database schema for a set of classes based on their
* mappings.
*
* @internal since version 4.7.0
*/
class DropSchemaDoctrineODMCommand extends DropCommand
{
Expand Down
2 changes: 2 additions & 0 deletions Command/GenerateHydratorsDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Generate the Doctrine ORM document hydrators to your cache directory.
*
* @internal since version 4.7.0
*/
class GenerateHydratorsDoctrineODMCommand extends GenerateHydratorsCommand
{
Expand Down
2 changes: 2 additions & 0 deletions Command/GenerateProxiesDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Generate the Doctrine ORM document proxies to your cache directory.
*
* @internal since version 4.7.0
*/
class GenerateProxiesDoctrineODMCommand extends GenerateProxiesCommand
{
Expand Down
2 changes: 2 additions & 0 deletions Command/InfoDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

/**
* Show information about mapped documents
*
* @internal since version 4.7.0
*/
class InfoDoctrineODMCommand extends DoctrineODMCommand
{
Expand Down
2 changes: 2 additions & 0 deletions Command/LoadDataFixturesDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

/**
* Load data fixtures from bundles.
*
* @internal since version 4.7.0
*/
class LoadDataFixturesDoctrineODMCommand extends DoctrineODMCommand
{
Expand Down
2 changes: 2 additions & 0 deletions Command/QueryDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Execute a Doctrine MongoDB ODM query and output the results.
*
* @internal since version 4.7.0
*/
class QueryDoctrineODMCommand extends QueryCommand
{
Expand Down
2 changes: 2 additions & 0 deletions Command/ShardDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
/**
* Command to shard database collections for a set of classes based on their
* mappings.
*
* @internal since version 4.7.0
*/
class ShardDoctrineODMCommand extends ShardCommand
{
Expand Down
2 changes: 2 additions & 0 deletions Command/UpdateSchemaDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
/**
* Command to update the database schema for a set of classes based on their
* mappings.
*
* @internal since version 4.7.0
*/
class UpdateSchemaDoctrineODMCommand extends UpdateCommand
{
Expand Down
1 change: 1 addition & 0 deletions DataCollector/CommandDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use function MongoDB\BSON\fromPHP;
use function MongoDB\BSON\toCanonicalExtendedJSON;

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

/** @internal */
class CreateHydratorDirectoryPass implements CompilerPassInterface
{
/** @return void */
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/Compiler/CreateProxyDirectoryPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use function mkdir;
use function sprintf;

/** @internal since version 4.7.0 */
class CreateProxyDirectoryPass implements CompilerPassInterface
{
/** @return void */
Expand Down
2 changes: 2 additions & 0 deletions DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* automapped folder.
*
* NOTE: alias is only supported by Symfony 2.6+ and will be ignored with older versions.
*
* @internal since version 4.7.0
*/
class DoctrineMongoDBMappingsPass extends RegisterMappingsPass
{
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/Compiler/FixturesCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

/** @internal since version 4.7.0 */
final class FixturesCompilerPass implements CompilerPassInterface
{
public const FIXTURE_TAG = 'doctrine.fixture.odm.mongodb';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use function array_keys;
use function array_map;

/** @internal since version 4.7.0 */
final class ServiceRepositoryCompilerPass implements CompilerPassInterface
{
public const REPOSITORY_SERVICE_TAG = 'doctrine_mongodb.odm.repository_service';
Expand Down

0 comments on commit bf6366a

Please sign in to comment.