Skip to content

Commit

Permalink
OXDEV-7248 Rename and restructure DI parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
godefroy-le-hardi authored and liulka-oxid committed Nov 13, 2024
1 parent 05aa7e4 commit 5796e60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/oxid-esales/twig-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ install: &install
docker-compose.yml
source/composer.json*
source/composer.lock
source/source/config.inc.php
source/vendor/oxid-esales/oxideshop-ce/source/config.inc.php
data/php/logs/error_log.txt
install_shop_with_modules: *install
Expand Down
2 changes: 1 addition & 1 deletion src/TwigContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(

public function getIsDebug(): bool
{
return ContainerFacade::getParameter('oxid_debug_mode');
return ContainerFacade::getParameter('oxid_esales.debug_mode');
}

public function getActiveThemeId(): string
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/TestingFixturesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function deactivateModuleFixture(string $moduleId): void
public function setShopSourceFixture(): void
{
$this->createContainer();
$this->container->setParameter('oxid_shop_source_directory', "{$this->getFixturesDirectory()}/shop/source/");
$this->container->setParameter('oxid_esales.shop_source_directory', "{$this->getFixturesDirectory()}/shop/source/");
$this->compileContainer();
$this->attachContainerToContainerFactory();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private function stubRequestData(): void
private function switchDebugMode(bool $enable): void
{
$this->createContainer();
$this->container->setParameter('oxid_debug_mode', $enable);
$this->container->setParameter('oxid_esales.debug_mode', $enable);
$this->container->compile();
$this->attachContainerToContainerFactory();
}
Expand Down

0 comments on commit 5796e60

Please sign in to comment.