2017 © Pedro Peláez
 

library nette-autoload-services

Automatically load and tag services from their respective directories

image

buri/nette-autoload-services

Automatically load and tag services from their respective directories

  • Sunday, October 30, 2016
  • by buri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Buri/nette-autoload-services

Autoload services to nette container, (*1)

Requirements

Buri/nette-autoload-services requires PHP 7.0 or higher., (*2)

Installation

The best way to install Buri/nette-autoload-services is using Composer:, (*3)

$ composer require buri/nette-autoload-services

Documentation

You can enable the extension using your neon config., (*4)

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

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

Configuration

This extension creates new configuration section serviceAutoload and no minimal configuration is required. Out of the box it provides support for: - Kdyby/Console - Kdyby/Events, (*6)

If you wish to register your own directory for service autoloading, example follows:, (*7)

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[])

The Versions

30/10 2016

dev-master

9999999-dev

Automatically load and tag services from their respective directories

  Sources   Download

GNU GPL V3

The Requires

 

by Avatar buri

30/10 2016

v1.0

1.0.0.0

Automatically load and tag services from their respective directories

  Sources   Download

GNU GPL V3

The Requires

 

by Avatar buri