- Dodano PSR-4 autoloader do wszystkich 6 punktów wejścia - Shared\: CacheHandler, Helpers, Html, ImageManipulator, Tpl - Domain\: LanguagesRepository, SettingsRepository, UserRepository - Stare class.*.php → cienkie wrappery (kompatybilność wsteczna) - Dodano dokumentację: docs/PROJECT_STRUCTURE.md + pozostałe docs/ - Dodano CLAUDE.md z workflow Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
495 B
PHP
25 lines
495 B
PHP
<?php
|
|
namespace front\factory;
|
|
|
|
/**
|
|
* @deprecated Wrapper — używaj \Domain\Settings\SettingsRepository przez DI.
|
|
*/
|
|
class Settings
|
|
{
|
|
private static function repo(): \Domain\Settings\SettingsRepository
|
|
{
|
|
global $mdb;
|
|
return new \Domain\Settings\SettingsRepository( $mdb );
|
|
}
|
|
|
|
public static function settings_details(): array
|
|
{
|
|
return self::repo()->allSettings();
|
|
}
|
|
|
|
public static function visit_counter(): ?string
|
|
{
|
|
return self::repo()->visitCounter();
|
|
}
|
|
}
|