drago-ex/bootstrap

Nette 框架的基本配置

v1.0.6 2023-12-01 13:33 UTC

This package is auto-updated.

Last update: 2024-09-20 08:37:40 UTC


README

基本配置。

License: MIT PHP version Tests Coding Style CodeFactor Coverage Status

要求

  • PHP 8.1 或更高版本
  • 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;
	}
}

多搜索。

$app->addFindConfig([
	__DIR__ . '/path/to/dir',
	__DIR__ . '/path/to/dir'
]);

搜索排除。

$app->addFindConfig(__DIR__ . '/path/to/dir', 'exclude');