<?php

namespace Config;

use CodeIgniter\Config\AutoloadConfig;

/**
 * Autoload Configuration
 *
 * Maps namespaces to directory paths so CI4's autoloader
 * can find classes without requiring explicit includes.
 */
class Autoload extends AutoloadConfig
{
    /**
     * PSR-4 namespace => directory mappings.
     *
     * @var array<string, list<string>|string>
     */
    public $psr4 = [
        APP_NAMESPACE => APPPATH,        // 'App' => app/
        'Config'      => APPPATH . 'Config',
    ];

    /**
     * Class map for non-namespaced legacy classes.
     *
     * @var array<class-string, non-empty-string>
     */
    public $classmap = [];

    /**
     * Files to always load on every request.
     *
     * @var list<non-empty-string>
     */
    public $files = [];

    /**
     * Helpers to always load on every request.
     *
     * @var list<non-empty-string>
     */
    public $helpers = [];
}
