Basic configuration.
- PHP 8.1 or higher
- composer
composer require drago-ex/bootstrap
class Bootstrap
{
public static function boot(): ExtraConfigurator
{
$app = new ExtraConfigurator;
// Finder configuration files.
$app->addFindConfig(__DIR__ . '/path/to/dir');
return $app;
}
}
Multiple search.
$app->addFindConfig([
__DIR__ . '/path/to/dir',
__DIR__ . '/path/to/dir'
]);
Search exclusion.
$app->addFindConfig(__DIR__ . '/path/to/dir', 'exclude');