chore: Update copyright year from 2025 to 2026 across core files
- Updated copyright headers in 3,055 core application files - Changed 'Copyright (C) 2014-2025' to 'Copyright (C) 2014-2026' - Added 123 new files from EspoCRM core updates - Removed 4 deprecated files - Total changes: 61,637 insertions, 54,283 deletions This is a routine maintenance update for the new year 2026.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* This file is part of EspoCRM.
|
||||
*
|
||||
* EspoCRM – Open Source CRM application.
|
||||
* Copyright (C) 2014-2025 EspoCRM, Inc.
|
||||
* Copyright (C) 2014-2026 EspoCRM, Inc.
|
||||
* Website: https://www.espocrm.com
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
@@ -32,25 +32,34 @@ namespace Espo\Core\Utils;
|
||||
use Espo\Core\Utils\File\Manager as FileManager;
|
||||
use Espo\Core\Utils\Resource\FileReader;
|
||||
use Espo\Core\Utils\Resource\FileReader\Params as FileReaderParams;
|
||||
use Espo\Core\Utils\Metadata;
|
||||
|
||||
class TemplateFileManager
|
||||
{
|
||||
public function __construct(
|
||||
private Config $config,
|
||||
private FileManager $fileManager,
|
||||
private FileReader $fileReader
|
||||
private FileReader $fileReader,
|
||||
private Metadata $metadata,
|
||||
) {}
|
||||
|
||||
public function getTemplate(
|
||||
string $type,
|
||||
string $name,
|
||||
?string $entityType = null,
|
||||
?string $defaultModuleName = null
|
||||
): string {
|
||||
|
||||
$templates = $this->metadata->get(['app', 'templates']);
|
||||
|
||||
$moduleName = null;
|
||||
|
||||
if (isset($templates[$type]) && isset($templates[$type]["module"])) {
|
||||
$moduleName = $templates[$type]["module"];
|
||||
}
|
||||
|
||||
$params = FileReaderParams::create()
|
||||
->withScope($entityType)
|
||||
->withModuleName($defaultModuleName);
|
||||
->withModuleName($moduleName);
|
||||
|
||||
if ($entityType) {
|
||||
$path1 = $this->getPath($type, $name, $entityType);
|
||||
|
||||
Reference in New Issue
Block a user