Skip to content

Commit

Permalink
Merge pull request #130 from OS2Forms/develop
Browse files Browse the repository at this point in the history
Release 3.15.8
  • Loading branch information
jekuaitk authored Aug 26, 2024
2 parents c06eb97 + 227a486 commit bbfb1a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 29 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ before starting to add changes. Use example [placed in the end of the page](#exa

## [Unreleased]

## [3.15.8] 2024-08-26

- [#127](https://github.com/OS2Forms/os2forms/pull/127)
Correctly created MaestroNotificationHandler

## [3.15.7] 2024-08-15

- [#123](https://github.com/OS2Forms/os2forms/pull/123)
Expand Down Expand Up @@ -257,7 +262,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa
- Security in case of vulnerabilities.
```

[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.15.7...HEAD
[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.15.8...HEAD
[3.15.8]: https://github.com/OS2Forms/os2forms/compare/3.15.7...3.15.8
[3.15.7]: https://github.com/OS2Forms/os2forms/compare/3.15.6...3.15.7
[3.15.6]: https://github.com/OS2Forms/os2forms/compare/3.15.5...3.15.6
[3.15.5]: https://github.com/OS2Forms/os2forms/compare/3.15.4...3.15.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,9 @@ final class WebformHandlerSF1601 extends WebformHandlerBase {
* @phpstan-param array<string, mixed> $configuration
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$instance = new static($configuration, $plugin_id, $plugin_definition);

$instance->loggerFactory = $container->get('logger.factory');
$instance->configFactory = $container->get('config.factory');
$instance->renderer = $container->get('renderer');
$instance->entityTypeManager = $container->get('entity_type.manager');
$instance->conditionsValidator = $container->get('webform_submission.conditions_validator');
$instance->tokenManager = $container->get('webform.token_manager');
$instance->helper = $container->get(WebformHelperSF1601::class);
$instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);

$instance->setConfiguration($configuration);
$instance->helper = $container->get(WebformHelperSF1601::class);

return $instance;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Drupal\Core\Link;
use Drupal\os2forms_forloeb\MaestroHelper;
use Drupal\webform\Plugin\WebformHandlerBase;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
* Maestro notification handler.
Expand Down Expand Up @@ -45,23 +44,6 @@ final class MaestroNotificationHandler extends WebformHandlerBase {
*/
private const NOTIFICATION_SUBJECT_MAX_LENGTH = 128;

/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$instance = new static($configuration, $plugin_id, $plugin_definition);

$instance->loggerFactory = $container->get('logger.factory');
$instance->configFactory = $container->get('config.factory');
$instance->renderer = $container->get('renderer');
$instance->entityTypeManager = $container->get('entity_type.manager');
$instance->conditionsValidator = $container->get('webform_submission.conditions_validator');

$instance->setConfiguration($configuration);

return $instance;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit bbfb1a5

Please sign in to comment.