Update to Kirby 4.7.0

This commit is contained in:
Paul Nicoué 2025-04-21 18:57:21 +02:00
parent 02a9ab387c
commit ba25a9a198
509 changed files with 26604 additions and 14872 deletions

View file

@ -21,34 +21,10 @@ class Translations extends Collection
{
/**
* All registered translations methods
*
* @var array
*/
public static $methods = [];
public static array $methods = [];
/**
* @param string $code
* @return void
*/
public function start(string $code): void
{
F::move($this->parent->contentFile('', true), $this->parent->contentFile($code, true));
}
/**
* @param string $code
* @return void
*/
public function stop(string $code): void
{
F::move($this->parent->contentFile($code, true), $this->parent->contentFile('', true));
}
/**
* @param array $translations
* @return static
*/
public static function factory(array $translations)
public static function factory(array $translations): static
{
$collection = new static();
@ -60,12 +36,7 @@ class Translations extends Collection
return $collection;
}
/**
* @param string $root
* @param array $inject
* @return static
*/
public static function load(string $root, array $inject = [])
public static function load(string $root, array $inject = []): static
{
$collection = new static();