<?php

namespace Config;

use CodeIgniter\Config\BaseConfig;

/**
 * Enable/disable backward compatibility breaking features.
 */
class Feature extends BaseConfig
{
    /**
     * multipleFilters MUST be true for this app: Routes.php combines
     * group-level and route-level filters as explicit arrays (e.g.
     * ['auth', 'tenant', 'roleguard:jobs.create']) everywhere a route needs
     * more than one filter. CI4's default array_merge() of group + route
     * 'filter' options means a route-level filter key silently REPLACES
     * (not stacks with) a group-level one — see the notes in Routes.php.
     * With multipleFilters left at the framework default of false, an
     * array filter value crashes at
     * CodeIgniter\Router\RouteCollection::getFilterForRoute() ("Return
     * value must be of type string, array given").
     */
    public bool $multipleFilters = true;

    /**
     * Use improved new auto routing instead of the default legacy version.
     */
    public bool $autoRoutesImproved = false;
}
