new command to work with translation files (#2993)

This commit is contained in:
Kevin Papst
2021-12-05 14:54:02 +01:00
committed by GitHub
parent f5949b6b9a
commit 0861dbd75d
2 changed files with 137 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ class Kernel extends BaseKernel
{
use MicroKernelTrait;
public const PLUGIN_DIRECTORY = '/var/plugins';
public const CONFIG_EXTS = '.{php,xml,yaml,yml}';
public const TAG_PLUGIN = 'kimai.plugin';
@@ -128,7 +129,7 @@ class Kernel extends BaseKernel
private function getBundleClasses(): array
{
$pluginsDir = $this->getProjectDir() . '/var/plugins';
$pluginsDir = $this->getProjectDir() . self::PLUGIN_DIRECTORY;
if (!file_exists($pluginsDir)) {
return [];
}