getTemplateFile example

use Shopware\Core\Framework\Changelog\ChangelogDefinition;
use Shopware\Core\Framework\Log\Package;

/** * @internal */
#[Package('core')] class ChangelogGenerator extends ChangelogProcessor
{
    public function generate(ChangelogDefinition $template, string $date, bool $dryRun = false): string
    {
        $target = $this->getTemplateFile($template$date);
        if ($dryRun) {
            echo $template->toTemplate();
        } else {
            file_put_contents($target$template->toTemplate());
        }

        return $target;
    }

    private function getTemplateFile(ChangelogDefinition $template, string $date): string
    {
        
Home | Imprint | This part of the site doesn't use cookies.