Remove obsolete OpenStack and Configuration stuff.

This commit is contained in:
Pol Dellaiera 2021-08-19 14:24:40 +02:00 committed by Marc Ducobu
parent 8382067858
commit eba8a3c260
4 changed files with 0 additions and 134 deletions

View File

@ -19,38 +19,6 @@ final class Configuration implements ConfigurationInterface
$treeBuilder = new TreeBuilder('chill_wopi');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->arrayNode('openstack')
->info("parameters to connect to the openstack swift repository")
->children()
->scalarNode('username')
->defaultValue('%env(resolve:OS_USERNAME)%')
->isRequired()
->cannotBeEmpty()
->end()
->scalarNode('password')
->defaultValue('%env(resolve:OS_PASSWORD)%')
->isRequired()
->cannotBeEmpty()
->end()
->scalarNode('tenantId')
->defaultValue('%env(resolve:OS_TENANT_ID)%')
->isRequired()
->cannotBeEmpty()
->end()
->scalarNode('region')
->defaultValue('%env(resolve:OS_REGION_NAME)%')
->isRequired()
->cannotBeEmpty()
->end()
->scalarNode('authUrl')
->defaultValue('%env(resolve:OS_AUTH_URL)%')
->isRequired()
->cannotBeEmpty()
->end()
->end();
return $treeBuilder;
}
}

View File

@ -10,7 +10,6 @@ declare(strict_types=1);
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
use ChampsLibres\AsyncUploaderBundle\TempUrl\TempUrlGeneratorInterface;
use ChampsLibres\AsyncUploaderBundle\TempUrl\TempUrlOpenstackGenerator;
use ChampsLibres\WopiLib\WopiInterface;
use Chill\WopiBundle\Service\Wopi\ChillWopi;

View File

@ -1,21 +0,0 @@
<?php
declare(strict_types=1);
namespace Chill\WopiBundle\Service\OpenStack;
use OpenStack\OpenStack;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
// TODO: Remove extends - Ugly.
final class Client extends OpenStack implements OpenStackClientInterface
{
private ParameterBagInterface $parameterBag;
public function __construct(ParameterBagInterface $parameterBag)
{
$configuration = $parameterBag->get('chill_wopi');
parent::__construct($configuration['openstack']);
}
}

View File

@ -1,80 +0,0 @@
<?php
declare(strict_types=1);
namespace Chill\WopiBundle\Service\OpenStack;
interface OpenStackClientInterface
{
/**
* Creates a new Compute v2 service.
*
* @param array $options options that will be used in configuring the service
*/
public function computeV2(array $options = []): \OpenStack\Compute\v2\Service;
/**
* Creates a new Networking v2 service.
*
* @param array $options options that will be used in configuring the service
*/
public function networkingV2(array $options = []): \OpenStack\Networking\v2\Service;
/**
* Creates a new Networking v2 Layer 3 service.
*
* @param array $options options that will be used in configuring the service
*/
public function networkingV2ExtLayer3(array $options = []): \OpenStack\Networking\v2\Extensions\Layer3\Service;
/**
* Creates a new Networking v2 Layer 3 service.
*
* @param array $options options that will be used in configuring the service
*/
public function networkingV2ExtSecGroups(array $options = []): \OpenStack\Networking\v2\Extensions\SecurityGroups\Service;
/**
* Creates a new Identity v2 service.
*
* @param array $options options that will be used in configuring the service
*/
public function identityV2(array $options = []): \OpenStack\Identity\v2\Service;
/**
* Creates a new Identity v3 service.
*
* @param array $options options that will be used in configuring the service
*/
public function identityV3(array $options = []): \OpenStack\Identity\v3\Service;
/**
* Creates a new Object Store v1 service.
*
* @param array $options options that will be used in configuring the service
*/
public function objectStoreV1(array $options = []): \OpenStack\ObjectStore\v1\Service;
/**
* Creates a new Block Storage v2 service.
*
* @param array $options options that will be used in configuring the service
*/
public function blockStorageV2(array $options = []): \OpenStack\BlockStorage\v2\Service;
/**
* Creates a new Images v2 service.
*
* @param array $options options that will be used in configuring the service
*/
public function imagesV2(array $options = []): \OpenStack\Images\v2\Service;
/**
* Creates a new Gnocchi Metric service v1.
*/
public function metricGnocchiV1(array $options = []): \OpenStack\Metric\v1\Gnocchi\Service;
}