Phase 6 zamknięta po 2 planach. Pełny fundament dla Phase 7-13 (migracja 17 admin controllers do Admin\ namespace). 06-01 (Forms infrastructure): - Admin\ViewModels\Forms\* — 5 ViewModeli (687 L) - Admin\Validation\FormValidator (196 L) - composer.json: php >=7.4, PSR-4 paths cross-platform safe (Admin\ → autoload/admin/, Frontend\ → autoload/front/) 06-02 (Support layer): - Admin\Support\TableListRequestFactory (99 L) — parser list z $_GET - Admin\Support\Forms\FormRequestHandler (159 L) — POST + CSRF + walidacja + persist - Admin\Support\Forms\FormFieldRenderer (494 L) — renderer HTML pól Decyzje: - Brak BaseController — Phase 7+ kontrolery jako POJOs z DI (jak shopPRO) - PSR-4 filename fix: TableListRequestFactory.php (bez shopPRO 'class.' prefix) - PascalCase namespace (Admin\Support) na lowercase folder admin/ ze względu na Windows fs case-insensitivity vs legacy admin/controls/ Pliki: 8 nowych klas, 1635 L kodu PHP 7.4-kompatybilnego, zero regresji. Smoke test: walidacja e-maila zwraca PL komunikat, factory parsuje ?page=&per_page=&sort=&filter=, Domain/Shared nadal ładują się. PHPUnit: 37/37 OK. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
51 lines
1.6 KiB
PHP
51 lines
1.6 KiB
PHP
<?php
|
|
|
|
// autoload_real.php @generated by Composer
|
|
|
|
class ComposerAutoloaderInitedf908e1f6b0e4fca8854163be177e40
|
|
{
|
|
private static $loader;
|
|
|
|
public static function loadClassLoader($class)
|
|
{
|
|
if ('Composer\Autoload\ClassLoader' === $class) {
|
|
require __DIR__ . '/ClassLoader.php';
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @return \Composer\Autoload\ClassLoader
|
|
*/
|
|
public static function getLoader()
|
|
{
|
|
if (null !== self::$loader) {
|
|
return self::$loader;
|
|
}
|
|
|
|
require __DIR__ . '/platform_check.php';
|
|
|
|
spl_autoload_register(array('ComposerAutoloaderInitedf908e1f6b0e4fca8854163be177e40', 'loadClassLoader'), true, true);
|
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
|
spl_autoload_unregister(array('ComposerAutoloaderInitedf908e1f6b0e4fca8854163be177e40', 'loadClassLoader'));
|
|
|
|
require __DIR__ . '/autoload_static.php';
|
|
call_user_func(\Composer\Autoload\ComposerStaticInitedf908e1f6b0e4fca8854163be177e40::getInitializer($loader));
|
|
|
|
$loader->register(true);
|
|
|
|
$filesToLoad = \Composer\Autoload\ComposerStaticInitedf908e1f6b0e4fca8854163be177e40::$files;
|
|
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
|
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
|
|
|
require $file;
|
|
}
|
|
}, null, null);
|
|
foreach ($filesToLoad as $fileIdentifier => $file) {
|
|
$requireFile($fileIdentifier, $file);
|
|
}
|
|
|
|
return $loader;
|
|
}
|
|
}
|