Componette

Componette

Buri

Buri / nette-autoload-services v1.1.1

Autoload services to nette container

download-cloud-line composer require buri/nette-autoload-services

Buri/nette-autoload-services

Autoload services to nette container

Requirements

Buri/nette-autoload-services requires PHP 7.0 or higher.

Installation

The best way to install Buri/nette-autoload-services is using Composer:

$ composer require buri/nette-autoload-services

Documentation

You can enable the extension using your neon config.

extensions:
	serviceAutoload: Buri\NAS\DI\Extension\AutoloadingExtension

You must place this extension BEFORE any other extension that will benefit from autoloading (ie. Kdyby/Console)

Configuration

This extension creates new configuration section serviceAutoload and no minimal configuration is required. Out of the box it provides support for:

If you wish to register your own directory for service autoloading, example follows:

serviceAutoload:
	consoleCommands:                  # Group name must be present, but can be any valid neon identifier
		directory: %appDir%/Console     # Directory to search in, recursively (string or string[])
		mask:                           # Filename mask, only matching files will be scanned for classes (string or string[])
			- *Command.php
		tag: kdyby.console.command      # Optional, can be used to tag services (string or string[])
bar-chart-fill

Statistics

download-cloud-fill
24
star-fill
0
bug-fill
0
flashlight-fill
2.7y
price-tag-2-line

Badges

guide-fill

Dependencies

nette/di (^2.4)
ext-tokenizer (^7.0)
php (^7.0)
Componette Componette felix@nette.org