From cfa914d077f145db36d06e8ec14243b063aca8e3 Mon Sep 17 00:00:00 2001 From: Andi Keiser Date: Mon, 3 Jan 2022 15:57:14 +0100 Subject: [PATCH] fix: bundle naming --- README.md | 4 ++-- .../DependencyInjection/Configuration.php | 2 +- ...ension.php => PimcoreCIHubAdapterExtension.php} | 4 ++-- ...der.php => PimcoreCIHubConfigurationLoader.php} | 2 +- .../Resources/config/pimcore/config.yml | 14 +++++++------- .../Resources/config/services.yml | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) rename src/PimcoreCIHubAdapterBundle/DependencyInjection/{CIHubAdapterExtension.php => PimcoreCIHubAdapterExtension.php} (89%) rename src/PimcoreCIHubAdapterBundle/Loader/{CIHubConfigurationLoader.php => PimcoreCIHubConfigurationLoader.php} (89%) diff --git a/README.md b/README.md index 6fb6ab9..f4c470b 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ To install the CI HUB Adapter complete following steps: Configure the default thumbnail, which is used by CI HUB to display the preview of your Pimcore Assets: ```yaml -# Default configuration for "CIHubAdapterBundle" -ci_hub_adapter: +# Default configuration for "PimcoreCIHubAdapterBundle" +pimcore_ci_hub_adapter: # Default image/document thumbnail settings. default_preview_thumbnail: diff --git a/src/PimcoreCIHubAdapterBundle/DependencyInjection/Configuration.php b/src/PimcoreCIHubAdapterBundle/DependencyInjection/Configuration.php index 94cc62a..2c1687b 100644 --- a/src/PimcoreCIHubAdapterBundle/DependencyInjection/Configuration.php +++ b/src/PimcoreCIHubAdapterBundle/DependencyInjection/Configuration.php @@ -24,7 +24,7 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder(): TreeBuilder { - $treeBuilder = new TreeBuilder('ci_hub_adapter'); + $treeBuilder = new TreeBuilder('pimcore_ci_hub_adapter'); $treeBuilder->getRootNode() ->addDefaultsIfNotSet() ->children() diff --git a/src/PimcoreCIHubAdapterBundle/DependencyInjection/CIHubAdapterExtension.php b/src/PimcoreCIHubAdapterBundle/DependencyInjection/PimcoreCIHubAdapterExtension.php similarity index 89% rename from src/PimcoreCIHubAdapterBundle/DependencyInjection/CIHubAdapterExtension.php rename to src/PimcoreCIHubAdapterBundle/DependencyInjection/PimcoreCIHubAdapterExtension.php index 1911b28..551e075 100644 --- a/src/PimcoreCIHubAdapterBundle/DependencyInjection/CIHubAdapterExtension.php +++ b/src/PimcoreCIHubAdapterBundle/DependencyInjection/PimcoreCIHubAdapterExtension.php @@ -20,7 +20,7 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; -class CIHubAdapterExtension extends Extension +class PimcoreCIHubAdapterExtension extends Extension { /** * {@inheritdoc} @@ -46,6 +46,6 @@ public function load(array $configs, ContainerBuilder $container): void */ private function registerConfiguration(ContainerBuilder $container, array $config): void { - $container->setParameter('ci_hub_adapter.default_preview_thumbnail', $config['default_preview_thumbnail']); + $container->setParameter('pimcore_ci_hub_adapter.default_preview_thumbnail', $config['default_preview_thumbnail']); } } diff --git a/src/PimcoreCIHubAdapterBundle/Loader/CIHubConfigurationLoader.php b/src/PimcoreCIHubAdapterBundle/Loader/PimcoreCIHubConfigurationLoader.php similarity index 89% rename from src/PimcoreCIHubAdapterBundle/Loader/CIHubConfigurationLoader.php rename to src/PimcoreCIHubAdapterBundle/Loader/PimcoreCIHubConfigurationLoader.php index 768e0c7..b86838e 100644 --- a/src/PimcoreCIHubAdapterBundle/Loader/CIHubConfigurationLoader.php +++ b/src/PimcoreCIHubAdapterBundle/Loader/PimcoreCIHubConfigurationLoader.php @@ -16,7 +16,7 @@ use CIHub\Bundle\SimpleRESTAdapterBundle\Loader\ConfigurationLoaderInterface; -final class CIHubConfigurationLoader implements ConfigurationLoaderInterface +final class PimcoreCIHubConfigurationLoader implements ConfigurationLoaderInterface { /** * {@inheritdoc} diff --git a/src/PimcoreCIHubAdapterBundle/Resources/config/pimcore/config.yml b/src/PimcoreCIHubAdapterBundle/Resources/config/pimcore/config.yml index dd5d979..b087174 100644 --- a/src/PimcoreCIHubAdapterBundle/Resources/config/pimcore/config.yml +++ b/src/PimcoreCIHubAdapterBundle/Resources/config/pimcore/config.yml @@ -1,7 +1,7 @@ -#ci_hub_adapter: -# default_preview_thumbnail: -# format: 'PNG' -# width: 300 -# height: 300 -# frame: true -# forceResize: true +pimcore_ci_hub_adapter: + default_preview_thumbnail: + format: 'PNG' + width: 300 + height: 300 + frame: true + forceResize: true diff --git a/src/PimcoreCIHubAdapterBundle/Resources/config/services.yml b/src/PimcoreCIHubAdapterBundle/Resources/config/services.yml index 4cc2a86..4ff6750 100644 --- a/src/PimcoreCIHubAdapterBundle/Resources/config/services.yml +++ b/src/PimcoreCIHubAdapterBundle/Resources/config/services.yml @@ -1,6 +1,6 @@ services: # CI HUB Configuration Loader - CIHub\Bundle\PimcoreCIHubAdapterBundle\Loader\CIHubConfigurationLoader: + CIHub\Bundle\PimcoreCIHubAdapterBundle\Loader\PimcoreCIHubConfigurationLoader: tags: - { name: 'pimcore.datahub.configuration.loader' }