<?php

namespace Config;

use CodeIgniter\Modules\Modules as BaseModules;

/**
 * Modules Configuration.
 */
class Modules extends BaseModules
{
    /**
     * Enable module auto-discovery.
     */
    public $enabled = true;

    /**
     * Discover modules in Composer packages?
     */
    public $discoverInComposer = true;

    /**
     * Composer package filtering.
     */
    public $composerPackages = [];

    /**
     * Auto-discovery components.
     */
    public $aliases = [
        'events',
        'filters',
        'registrars',
        'routes',
        'services',
    ];

    /**
     * ✅ Register your custom module directories.
     */
    protected $paths = [
        APPPATH . 'Modules/Frontend',
        APPPATH . 'Modules/Admin',
    ];
}