Skip to content

Commit

Permalink
Add additional value to twig.config debug settings. (#170)
Browse files Browse the repository at this point in the history
Co-authored-by: K Widholm <[email protected]>
  • Loading branch information
markdorison and apotek authored Oct 6, 2023
1 parent 7c0f0fd commit 45d27bd
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 @@ -347,11 +347,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 45d27bd

Please sign in to comment.