drago-ex/bootstrap

Basic configuration for Nette Framework

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

This package is auto-updated.

Last update: 2024-12-20 09:14:27 UTC


README

Basic configuration.

License: MIT PHP version Tests Coding Style CodeFactor Coverage Status

Requirements

  • PHP 8.1 or higher
  • composer

Installation

composer require drago-ex/bootstrap

Use

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');