Skip to content
Snippets Groups Projects
Commit b4cc1d3e authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3293157 by phenaproxima, tedbow: Make everything internal

parent b1abe1f5
No related branches found
No related tags found
No related merge requests found
Showing
with 111 additions and 16 deletions
...@@ -8,8 +8,13 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; ...@@ -8,8 +8,13 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/** /**
* Clears stale update data once staged changes have been applied. * Clears stale update data once staged changes have been applied.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class UpdateDataSubscriber implements EventSubscriberInterface { final class UpdateDataSubscriber implements EventSubscriberInterface {
/** /**
* The update manager service. * The update manager service.
......
...@@ -9,8 +9,13 @@ use Symfony\Component\Process\ExecutableFinder as SymfonyExecutableFinder; ...@@ -9,8 +9,13 @@ use Symfony\Component\Process\ExecutableFinder as SymfonyExecutableFinder;
/** /**
* An executable finder which looks for executable paths in configuration. * An executable finder which looks for executable paths in configuration.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class ExecutableFinder implements ExecutableFinderInterface { final class ExecutableFinder implements ExecutableFinderInterface {
/** /**
* The decorated executable finder. * The decorated executable finder.
......
...@@ -11,8 +11,13 @@ use Symfony\Component\Process\ExecutableFinder; ...@@ -11,8 +11,13 @@ use Symfony\Component\Process\ExecutableFinder;
/** /**
* A file syncer factory which creates a file syncer according to configuration. * A file syncer factory which creates a file syncer according to configuration.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class FileSyncerFactory { final class FileSyncerFactory {
/** /**
* The decorated file syncer factory. * The decorated file syncer factory.
......
...@@ -9,8 +9,13 @@ use Symfony\Component\DependencyInjection\Reference; ...@@ -9,8 +9,13 @@ use Symfony\Component\DependencyInjection\Reference;
/** /**
* Defines dynamic container services for Package Manager. * Defines dynamic container services for Package Manager.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class PackageManagerServiceProvider extends ServiceProviderBase { final class PackageManagerServiceProvider extends ServiceProviderBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -9,8 +9,13 @@ use Symfony\Component\DependencyInjection\ContainerAwareTrait; ...@@ -9,8 +9,13 @@ use Symfony\Component\DependencyInjection\ContainerAwareTrait;
/** /**
* Prevents any module from being uninstalled if update is in process. * Prevents any module from being uninstalled if update is in process.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class PackageManagerUninstallValidator implements ModuleUninstallValidatorInterface, ContainerAwareInterface { final class PackageManagerUninstallValidator implements ModuleUninstallValidatorInterface, ContainerAwareInterface {
use ContainerAwareTrait; use ContainerAwareTrait;
use StringTranslationTrait; use StringTranslationTrait;
......
...@@ -11,8 +11,13 @@ use Symfony\Component\Finder\Finder; ...@@ -11,8 +11,13 @@ use Symfony\Component\Finder\Finder;
/** /**
* Excludes .git directories from staging operations. * Excludes .git directories from staging operations.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class GitExcluder implements EventSubscriberInterface { final class GitExcluder implements EventSubscriberInterface {
use PathExclusionsTrait; use PathExclusionsTrait;
......
...@@ -10,6 +10,11 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; ...@@ -10,6 +10,11 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/** /**
* Excludes site configuration files from staging areas. * Excludes site configuration files from staging areas.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class SiteConfigurationExcluder implements EventSubscriberInterface { class SiteConfigurationExcluder implements EventSubscriberInterface {
......
...@@ -13,8 +13,13 @@ use Symfony\Component\Filesystem\Filesystem; ...@@ -13,8 +13,13 @@ use Symfony\Component\Filesystem\Filesystem;
/** /**
* Excludes public and private files from staging operations. * Excludes public and private files from staging operations.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class SiteFilesExcluder implements EventSubscriberInterface { final class SiteFilesExcluder implements EventSubscriberInterface {
use PathExclusionsTrait; use PathExclusionsTrait;
......
...@@ -11,6 +11,11 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; ...@@ -11,6 +11,11 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/** /**
* Excludes SQLite database files from staging operations. * Excludes SQLite database files from staging operations.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class SqliteDatabaseExcluder implements EventSubscriberInterface { class SqliteDatabaseExcluder implements EventSubscriberInterface {
......
...@@ -10,8 +10,13 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; ...@@ -10,8 +10,13 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/** /**
* Excludes 'sites/simpletest' from staging operations. * Excludes 'sites/simpletest' from staging operations.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class TestSiteExcluder implements EventSubscriberInterface { final class TestSiteExcluder implements EventSubscriberInterface {
use PathExclusionsTrait; use PathExclusionsTrait;
......
...@@ -10,8 +10,13 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; ...@@ -10,8 +10,13 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/** /**
* Excludes vendor hardening files from staging operations. * Excludes vendor hardening files from staging operations.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class VendorHardeningExcluder implements EventSubscriberInterface { final class VendorHardeningExcluder implements EventSubscriberInterface {
use PathExclusionsTrait; use PathExclusionsTrait;
......
...@@ -10,6 +10,11 @@ use Symfony\Component\Process\Process; ...@@ -10,6 +10,11 @@ use Symfony\Component\Process\Process;
/** /**
* Defines a process factory which sets the COMPOSER_HOME environment variable. * Defines a process factory which sets the COMPOSER_HOME environment variable.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
final class ProcessFactory implements ProcessFactoryInterface { final class ProcessFactory implements ProcessFactoryInterface {
......
...@@ -8,7 +8,7 @@ use Drupal\system\SystemManager; ...@@ -8,7 +8,7 @@ use Drupal\system\SystemManager;
/** /**
* A value object to contain the results of a validation. * A value object to contain the results of a validation.
*/ */
class ValidationResult { final class ValidationResult {
/** /**
* A succinct summary of the results. * A succinct summary of the results.
......
...@@ -15,8 +15,13 @@ use PhpTuf\ComposerStager\Domain\Service\ProcessRunner\ComposerRunnerInterface; ...@@ -15,8 +15,13 @@ use PhpTuf\ComposerStager\Domain\Service\ProcessRunner\ComposerRunnerInterface;
/** /**
* Validates the Composer executable is the correct version. * Validates the Composer executable is the correct version.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class ComposerExecutableValidator implements PreOperationStageValidatorInterface, ProcessOutputCallbackInterface { final class ComposerExecutableValidator implements PreOperationStageValidatorInterface, ProcessOutputCallbackInterface {
use StringTranslationTrait; use StringTranslationTrait;
......
...@@ -9,8 +9,13 @@ use Drupal\package_manager\Event\PreOperationStageEvent; ...@@ -9,8 +9,13 @@ use Drupal\package_manager\Event\PreOperationStageEvent;
/** /**
* Validates certain Composer settings. * Validates certain Composer settings.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class ComposerSettingsValidator implements PreOperationStageValidatorInterface { final class ComposerSettingsValidator implements PreOperationStageValidatorInterface {
use StringTranslationTrait; use StringTranslationTrait;
......
...@@ -12,6 +12,11 @@ use Drupal\package_manager\PathLocator; ...@@ -12,6 +12,11 @@ use Drupal\package_manager\PathLocator;
/** /**
* Validates that there is enough free disk space to do staging operations. * Validates that there is enough free disk space to do staging operations.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class DiskSpaceValidator implements PreOperationStageValidatorInterface { class DiskSpaceValidator implements PreOperationStageValidatorInterface {
......
...@@ -14,8 +14,13 @@ use Drupal\package_manager\PathLocator; ...@@ -14,8 +14,13 @@ use Drupal\package_manager\PathLocator;
/** /**
* Checks that the active lock file is unchanged during stage operations. * Checks that the active lock file is unchanged during stage operations.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class LockFileValidator implements PreOperationStageValidatorInterface { final class LockFileValidator implements PreOperationStageValidatorInterface {
use StringTranslationTrait; use StringTranslationTrait;
......
...@@ -10,8 +10,13 @@ use Drupal\package_manager\PathLocator; ...@@ -10,8 +10,13 @@ use Drupal\package_manager\PathLocator;
/** /**
* Checks that the current site is not part of a multisite. * Checks that the current site is not part of a multisite.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class MultisiteValidator implements PreOperationStageValidatorInterface { final class MultisiteValidator implements PreOperationStageValidatorInterface {
use StringTranslationTrait; use StringTranslationTrait;
......
...@@ -11,8 +11,13 @@ use Drupal\Core\Url; ...@@ -11,8 +11,13 @@ use Drupal\Core\Url;
/** /**
* Validates that there are no pending database updates. * Validates that there are no pending database updates.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class PendingUpdatesValidator implements PreOperationStageValidatorInterface { final class PendingUpdatesValidator implements PreOperationStageValidatorInterface {
use StringTranslationTrait; use StringTranslationTrait;
......
...@@ -10,8 +10,13 @@ use Drupal\package_manager\Event\PreOperationStageEvent; ...@@ -10,8 +10,13 @@ use Drupal\package_manager\Event\PreOperationStageEvent;
/** /**
* Checks that Drupal's settings are valid for Package Manager. * Checks that Drupal's settings are valid for Package Manager.
*
* @internal
* This is an internal part of Package Manager and may be changed or removed
* at any time without warning. External code should not interact with this
* class.
*/ */
class SettingsValidator implements PreOperationStageValidatorInterface { final class SettingsValidator implements PreOperationStageValidatorInterface {
use StringTranslationTrait; use StringTranslationTrait;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment