Skip to content

Commit

Permalink
[Backport 2.x] Add additional value to twig.config debug settings. (#171
Browse files Browse the repository at this point in the history
)

Co-authored-by: K Widholm <[email protected]>
Co-authored-by: Mark Dorison <[email protected]>
  • Loading branch information
3 people authored Oct 9, 2023
1 parent 7c6c00d commit 8678f15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Robo/Plugin/Commands/DevelopmentModeBaseCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,12 @@ protected function frontendDevEnableDrupal(string $siteDir = 'default', array $o
);
}

$this->say("enablig twig.debug in development.services.yml.");
$this->say("optimizing twig for front-end development in development services yml config.");
$devServices = Yaml::parseFile($this->devServicesPath);
$devServices['parameters']['twig.config'] = [
'debug' => true,
'auto_reload' => true,
'cache' => false,
];
file_put_contents($this->devServicesPath, Yaml::dump($devServices));
$this->say("disabling render and dynamic_page_cache in settings.local.php.");
Expand Down

0 comments on commit 8678f15

Please sign in to comment.