Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Satis name configuration constraints #123

Merged
merged 1 commit into from
Mar 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/Playbloom/Satisfy/Form/Type/ConfigurationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'required' => true,
'constraints' => [
new Assert\NotBlank(),
new Assert\Regex('#[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9]([_.-]?[a-z0-9]+)*#'),
],
])
->add('description', TextareaType::class, [
Expand Down Expand Up @@ -54,15 +53,15 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add('requireAll', Type\CheckboxType::class, [
'required' => false,
'attr' => [
'rel' => 'tooltip',
'data-title' => 'selects all versions of all packages in the repositories you defined',
'rel' => 'tooltip',
'data-title' => 'selects all versions of all packages in the repositories you defined',
],
])
->add('requireDependencies', Type\CheckboxType::class, [
'required' => false,
'attr' => [
'rel' => 'tooltip',
'data-title' => <<<END
'rel' => 'tooltip',
'data-title' => <<<END
satis will attempt to resolve all the required packages from the listed repositories
END
],
Expand Down Expand Up @@ -150,7 +149,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'rel' => 'tooltip',
'data-title' => 'when not checked, the JSON_PRETTY_PRINT option will not be used on encoding.',
],
])
;
]);
}
}