Skip to content

Commit

Permalink
Fix %kernel.debug% usage in SymfonycastsSassExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
evertharmeling authored Oct 20, 2023
1 parent 039d7aa commit 9b32c8e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/DependencyInjection/SymfonycastsSassExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@

class SymfonycastsSassExtension extends Extension implements ConfigurationInterface
{
private bool $isDebug = false;

public function load(array $configs, ContainerBuilder $container): void
{
$this->isDebug = $container->getParameter('kernel.debug');

$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__.'/../../config'));
$loader->load('services.php');

Expand Down Expand Up @@ -71,7 +67,7 @@ public function getConfigTreeBuilder(): TreeBuilder
->end()
->scalarNode('embed_sourcemap')
->info('Whether to embed the sourcemap in the compiled CSS. By default, enabled only when debug mode is on.')
->defaultValue($this->isDebug)
->defaultValue('%kernel.debug%')
->end()
->end()
;
Expand Down

0 comments on commit 9b32c8e

Please sign in to comment.