Skip to content

Commit

Permalink
subsciption symfony controller fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GytisZum committed Dec 17, 2024
1 parent 10b7229 commit f756360
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 10 additions & 0 deletions config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,13 @@ services:
- '@subscription_options_data_provider'
- 'subscription_options': 'Mollie\Subscription\Form\Options\SubscriptionOptionsType'
- 'SubscriptionOptions'

Mollie\Subscription\Controller\Symfony\SubscriptionFAQController:
public: true
autowire: true
autoconfigure: true

Mollie\Subscription\Controller\Symfony\SubscriptionController:
public: true
autowire: true
autoconfigure: true
2 changes: 0 additions & 2 deletions subscription/Controller/Symfony/AbstractSymfonyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ abstract class AbstractSymfonyController extends FrameworkBundleAdminController

public function __construct()
{
parent::__construct();

/* @phpstan-ignore-next-line */
$this->module = Module::getInstanceByName('mollie');
}
Expand Down
2 changes: 1 addition & 1 deletion subscription/Form/Options/SubscriptionOptionsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use PrestaShopBundle\Form\Admin\Type\TranslatorAwareType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

if (!defined('_PS_VERSION_')) {
exit;
Expand Down

0 comments on commit f756360

Please sign in to comment.