Skip to content
Snippets Groups Projects

Issue #3247479: Allow LockFileValidator results to carry multiple messages, and improve their text

22 files
+ 84
84
Compare changes
  • Side-by-side
  • Inline
Files
22
  • 9fe72b11
    Issue #3342137 by yash.rode, phenaproxima, Wim Leers: Rename validator methods... · 9fe72b11
    Yash Rode authored
    Issue #3342137 by yash.rode, phenaproxima, Wim Leers: Rename validator methods to `validate` unless there different methods for different events
@@ -59,9 +59,9 @@ class ComposerExecutableValidator implements EventSubscriberInterface {
) {}
/**
* {@inheritdoc}
* Validates that the Composer executable is the correct version.
*/
public function validateStagePreOperation(PreOperationStageEvent $event): void {
public function validate(PreOperationStageEvent $event): void {
// Return early if Composer is not available.
try {
// The "Composer is available" precondition requires active and stage
@@ -143,9 +143,9 @@ class ComposerExecutableValidator implements EventSubscriberInterface {
*/
public static function getSubscribedEvents(): array {
return [
PreCreateEvent::class => 'validateStagePreOperation',
PreApplyEvent::class => 'validateStagePreOperation',
StatusCheckEvent::class => 'validateStagePreOperation',
PreCreateEvent::class => 'validate',
PreApplyEvent::class => 'validate',
StatusCheckEvent::class => 'validate',
];
}
Loading