Skip to content

Commit

Permalink
Bugfix/v12 fixes (#33)
Browse files Browse the repository at this point in the history
* [TASK] Change YouTube validator name

* [TASK] executeStatement instead of executeQuery

* [TASK] Change composer dependencies and version
  • Loading branch information
ayacoo authored Apr 27, 2023
1 parent 491c084 commit 7e959fb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Repository/FileRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function resetValidationState(string $extension): void
);
$queryBuilder->set('validation_date', 0);
$queryBuilder->set('validation_status', 0);
$queryBuilder->executeQuery();
$queryBuilder->executeStatement();
}

public function updatePropertiesByFile(int $fileUid, array $properties = []): void
Expand All @@ -130,7 +130,7 @@ public function updatePropertiesByFile(int $fileUid, array $properties = []): vo
foreach ($properties as $key => $value) {
$queryBuilder->set($key, $value);
}
$queryBuilder->executeQuery();
$queryBuilder->executeStatement();
}

protected function getQueryBuilder(string $tableName = ''): QueryBuilder
Expand Down
2 changes: 1 addition & 1 deletion Classes/Service/Validator/YoutubeValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use TYPO3\CMS\Core\Resource\OnlineMedia\Helpers\YouTubeHelper;
use TYPO3\CMS\Core\Utility\GeneralUtility;

class YouTubeValidator extends AbstractVideoValidator implements AbstractVideoValidatorInterface
class YoutubeValidator extends AbstractVideoValidator implements AbstractVideoValidatorInterface
{
private YouTubeHelper $youtubeHelper;

Expand Down
4 changes: 2 additions & 2 deletions Classes/Service/VideoService.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Ayacoo\VideoValidator\Event\ModifyValidatorEvent;
use Ayacoo\VideoValidator\Service\Validator\AbstractVideoValidatorInterface;
use Ayacoo\VideoValidator\Service\Validator\VimeoValidator;
use Ayacoo\VideoValidator\Service\Validator\YouTubeValidator;
use Ayacoo\VideoValidator\Service\Validator\YoutubeValidator;
use Psr\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use TYPO3\CMS\Core\Resource\ResourceFactory;
Expand Down Expand Up @@ -144,7 +144,7 @@ protected function getValidator(ValidatorDemand $validatorDemand): ?AbstractVide
{
$extension = strtolower($validatorDemand->getExtension());
$validator = match ($extension) {
'youtube' => GeneralUtility::makeInstance(YouTubeValidator::class, $extension),
'youtube' => GeneralUtility::makeInstance(YoutubeValidator::class, $extension),
'vimeo' => GeneralUtility::makeInstance(VimeoValidator::class, $extension)
};

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ayacoo/video-validator",
"type": "typo3-cms-extension",
"version": "3.0.0",
"version": "3.0.1",
"description": "Checks online videos in TYPO3 for availability",
"homepage": "https://www.ayacoo.de",
"authors": [
Expand All @@ -19,7 +19,7 @@
],
"require": {
"php": ">=8.1",
"typo3/cms-core": "^12.3"
"typo3/cms-core": "^12.4"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
'state' => 'stable',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '3.0.0',
'version' => '3.0.1',
'constraints' => [
'depends' => [
'typo3' => '12.0.0-12.9.99',
'typo3' => '12.4.0-12.9.99',
],
'conflicts' => [
],
Expand Down

0 comments on commit 7e959fb

Please sign in to comment.