Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"type": "library",
"description": "DreamCommerce common bundle",
"require": {
"php": "^7.4",
"php": ">=8.2",
"psr/http-message": "^1.0",
"webmozart/assert": "^1.2",
"laminas/laminas-stdlib": "^3.1"
"laminas/laminas-stdlib": "^3.1",
"sylius/resource-bundle": "^1.11"
},
"require-dev": {
"doctrine/doctrine-bundle": "^2.5.7",
"doctrine/orm": "^2.10.3",
"guzzlehttp/guzzle": "^6.2",
"phpunit/phpunit": "^10.0-dev",
"sylius/resource-bundle": "v1.9.0-BETA.1",
"friendsofphp/php-cs-fixer": "^v2.19.3",
"polishsymfonycommunity/symfony-mocker-container": "^1.0",
"symfony/browser-kit": "v6.0.3",
Expand Down Expand Up @@ -43,7 +43,7 @@
},
"autoload-dev": {
"psr-4": {
"DreamCommerce\\Tests\\Common\\": "test/src/DreamCommerce/Tests/Common",
"DreamCommerce\\Tests\\Compontent\\Common\\": "test/src/DreamCommerce/Tests/Compontent/Common",
"DreamCommerce\\Tests\\CommonBundle\\": "test/src/DreamCommerce/Tests/CommonBundle",
"DreamCommerce\\Fixtures\\CommonBundle\\": "test/src/DreamCommerce/Fixtures/CommonBundle/"
}
Expand All @@ -56,7 +56,8 @@
"extra": {
"branch-alias": {
"dev-master": "1.0-dev",
"dev-develop": "1.1-dev"
"dev-develop": "1.1-dev",
"dev-dev8.2": "2.0-dev"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@ final class Configuration implements ConfigurationInterface
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder();
$treeBuilder = new TreeBuilder('dream_commerce');

$rootNode = $treeBuilder
->root('dream_commerce')
->addDefaultsIfNotSet()
$rootNode = $treeBuilder->getRootNode()->addDefaultsIfNotSet()
->children();
;

$this->addJmsSection($rootNode);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function load(array $config, ContainerBuilder $container)
;
}

public function getAlias()
public function getAlias(): string
{
return self::ALIAS;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<parameter key="dream_commerce.http_client.class">DreamCommerce\Component\Common\Http\GuzzleClient</parameter>
<parameter key="dream_commerce.datetime_factory.class">DreamCommerce\Component\Common\Factory\DateTimeFactory</parameter>
<parameter key="dream_commerce.uri_factory.class">DreamCommerce\Component\Common\Factory\GuzzleUriFactory</parameter>
<parameter key="dream_commerce.twig.variable_extension.class">DreamCommerce\Bundle\CommonBundle\Twig\Extension\VariableExtension</parameter>
<parameter key="dream_commerce.jms.serializer.sylius_constructor.class">DreamCommerce\Component\Common\JMS\Serializer\Construction\SyliusConstructor</parameter>
<parameter key="dream_commerce.jms.serializer.date_handler.class">DreamCommerce\Component\Common\JMS\Serializer\Handler\DateHandler</parameter>
</parameters>
Expand All @@ -22,10 +21,6 @@
<argument type="service" id="dream_commerce.guzzle_client" />
</service>

<service id="dream_commerce.twig.variable_extension" class="%dream_commerce.twig.variable_extension.class%" public="false">
<tag name="twig.extension" />
</service>

<service id="dream_commerce.jms.serializer.sylius_constructor" class="%dream_commerce.jms.serializer.sylius_constructor.class%" public="false">
<argument type="service" id="service_container" />
<argument type="service" id="sylius.resource_registry" />
Expand Down

This file was deleted.