Skip to content

matyx/nette-config-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packetery/nette-config-loader

Quickstart

This extension allows you to load config file according to current environment. Typical use case is registering different services for production and environment (e. g. using mocking services on development and using production services for production environment).

Installation

You can install the extension using this command

$ composer require packetery/nette-config-loader

and enable the extension using your neon config.

extensions:
	configLoader: Packetery\Nette\DI\ConfigLoaderExtension

Configuration

  1. Set current environment in config.local.neon:
configLoader:
	environment: development
  1. Create new config file according to your environments app/config/config.ENVIRONMENT.neon, e. g. app/config/config.development.neon

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages