mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Remove obsolete OpenStack and Configuration stuff.
This commit is contained in:
parent
8382067858
commit
eba8a3c260
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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']);
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user