Skip to content

Commit

Permalink
Merge pull request #7 from mhuebe/v11-improvements
Browse files Browse the repository at this point in the history
V11 improvements
  • Loading branch information
ptheg authored Jan 14, 2022
2 parents 3a94dad + 2debea7 commit 2f5b043
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Classes/Command/MoveFilesBetweenStorages.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Nextmotion\GoogleCloudStorageDriver\Command;

/*
Expand All @@ -22,6 +24,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\QueryBuilder;
use TYPO3\CMS\Core\Resource\Driver\DriverRegistry;
Expand Down Expand Up @@ -444,7 +447,7 @@ protected function getClient(): StorageClient

if (strpos($configuredPrivateKeyFile, '/') !== 0) {
$privateKeyPathAndFilename = realpath(
PATH_site . $configuredPrivateKeyFile
Environment::getPublicPath() . $configuredPrivateKeyFile
);
} else {
$privateKeyPathAndFilename = $configuredPrivateKeyFile;
Expand Down
9 changes: 8 additions & 1 deletion Configuration/Services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ services:
tags:
- name: event.listener
identifier: 'nextmotionGoogleCloudStorageGeneratePublicUrlForResourceListener'
event: TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent
event: TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent

Nextmotion\GoogleCloudStorageDriver\Command\MoveFilesBetweenStorages:
tags:
- name: 'console.command'
command: 'googlecloudstorage:move'
schedulable: true
description: 'Moving all files between two storages'
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@
"psr-4": {
"Nextmotion\\GoogleCloudStorageDriver\\": "Classes"
}
},
"extra": {
"typo3/cms": {
"extension-key": "google_cloud_storage_fal"
}
}
}
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'title' => 'Google Cloud Storage FAL Driver',
'description' => 'Google Cloud Storage FAL driver for TYPO3. Files can be stored in the GCS buckets.',
'category' => 'be',
'version' => '1.0.9',
'version' => '1.0.11',
'state' => 'stable',
'clearcacheonload' => 1,
'author' => 'Pierre Geyer',
Expand Down

0 comments on commit 2f5b043

Please sign in to comment.