Skip to content

Commit

Permalink
fix: service configuration loading and unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Dec 10, 2024
1 parent c58aea1 commit 559fae4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Dbp\Relay\VerityConnectorVerapdfBundle\DependencyInjection;

use Dbp\Relay\CoreBundle\Extension\ExtensionTrait;
use Dbp\Relay\VerityBundle\Service\ConfigurationService;
//use Dbp\Relay\VerityBundle\Service\ConfigurationService;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension;

class DbpRelayVerityConnectorVerapdfBundleExtension extends ConfigurableExtension
class DbpRelayVerityConnectorVerapdfExtension extends ConfigurableExtension
{
use ExtensionTrait;

Expand All @@ -23,7 +23,8 @@ public function loadInternal(array $mergedConfig, ContainerBuilder $container):
);
$loader->load('services.yaml');

$definition = $container->getDefinition(ConfigurationService::class);
$definition->addMethodCall('setConfig', [$mergedConfig]);
// TODO: Implement service configuration
// $definition = $container->getDefinition(ConfigurationService::class);
// $definition->addMethodCall('setConfig', [$mergedConfig]);
}
}
5 changes: 4 additions & 1 deletion tests/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ protected function configureContainer(ContainerConfigurator $container, LoaderIn
'annotations' => false,
]);

$container->extension('dbp_verity_connector_verapdf', []);
$container->extension('dbp_relay_verity_connector_verapdf', [
'url' => 'http://localhost:8080',
'maxsize' => '1000000',
]);
}
}

0 comments on commit 559fae4

Please sign in to comment.