Skip to content

Commit

Permalink
[TASK] Adapt CommentFormFactory for v13
Browse files Browse the repository at this point in the history
  • Loading branch information
bnf committed Oct 17, 2024
1 parent fc1590d commit 160190d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Domain/Factory/CommentFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace T3G\AgencyPack\Blog\Domain\Factory;

use Psr\Http\Message\ServerRequestInterface;
use T3G\AgencyPack\Blog\Domain\Finisher\CommentFormFinisher;
use T3G\AgencyPack\Blog\Domain\Validator\GoogleCaptchaValidator;
use TYPO3\CMS\Core\Information\Typo3Version;
Expand All @@ -35,7 +36,7 @@ class CommentFormFactory extends AbstractFormFactory
* This example build a FormDefinition manually,
* so $configuration and $prototypeName are unused.
*/
public function build(array $configuration, string $prototypeName = null): FormDefinition
public function build(array $configuration, ?string $prototypeName = null, ?ServerRequestInterface $request = null): FormDefinition
{
$prototypeName = 'standard';
$formConfigurationService = GeneralUtility::makeInstance(ConfigurationService::class);
Expand Down

0 comments on commit 160190d

Please sign in to comment.