/** * @param bool $forceCompression Default: false. Forces compression regardless of Twig's debug setting. */ public function __construct($forceCompression = false) { $this->forceCompression = $forceCompression; $this->parser = Factory::constructSmallest(); $this->callable = array($this, 'compress'); }
/** * @param SourceSetEvent $event */ public function onAfterFormatSmallest(SourceSetEvent $event) { $parser = Factory::constructSmallest(); $this->compress($parser, $event); }