Componette

Componette

orisai

orisai / nette-di

Configure your Nette application

download-cloud-line composer require orisai/nette-di

Orisai
Nette DI

Configure your Nette application

📄 Check out our documentation.

💸 If you like Orisai, please make a donation. Thank you!

namespace App;

use OriNette\DI\Boot\Environment;
use OriNette\DI\Boot\ManualConfigurator;

final class Bootstrap
{

	public static function boot(): ManualConfigurator
	{
		$configurator = new ManualConfigurator(dirname(__DIR__));

		$configurator->setDebugMode(
			Environment::isEnvDebug()
			|| Environment::isLocalhost()
		);
		$configurator->enableDebugger();

		$configurator->addConfig(__DIR__ . '/wiring.neon');
		$configurator->addConfig(__DIR__ . '/../config/local.neon');

		return $configurator;
	}

}

... and more.

No release at this moment. Try to create first one.

bar-chart-fill

Statistics

download-cloud-fill
31551
star-fill
4
bug-fill
1
flashlight-fill
58d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.4.0 <8.2.0)
nette/di (^3.0.5)
Componette Componette felix@nette.org