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

PIPRES-348: Move subscription options to subscription tab #832

Conversation

mandan2
Copy link
Contributor

@mandan2 mandan2 commented Oct 17, 2023

image
image

@mandan2 mandan2 self-assigned this Oct 17, 2023
@mandan2 mandan2 changed the title PIPRES-348: WIP move subscription options to subscription tab PIPRES-348: Move subscription options to subscription tab Oct 23, 2023

/** @var Mollie */
protected $module;

public function __construct()
{
parent::__construct();
$this->leagueContainer = new LeagueServiceContainerProvider();

$this->serviceProvider = new LeagueServiceContainerProvider();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont really like this approach you already have $this->module, you can getService as intended now, by using new you are skipping extendable options of this provider.

*
* @throws \Throwable
*/
private function processForm(FormHandlerInterface $formHandler, Request $request)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems weird, you are calling submit, but check if it's submitted later on there should be a better solution inside Core of PS.

*/
public function validateConfiguration(array $configuration): bool
{
return isset(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless function tbh.

@mandan2 mandan2 merged commit d445415 into release-6.0.5 Oct 24, 2023
5 checks passed
@mandan2 mandan2 deleted the PIPRES-348-move-subscription-options-to-subscriptions-tab branch October 24, 2023 06:39
JevgenijVisockij pushed a commit that referenced this pull request Jan 16, 2024
* PIPRES-348: WIP move subscription options to subscription tab

* added carrier repository to provide with carrier choices, moved template to another file

* phpstan

* adjusted PS 1.7.6 support

* removed validations from formProcess

* simplified formProcess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants