Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

License

NotificationsYou must be signed in to change notification settings

zfcampus/zf-configuration

Repository abandoned 2019-12-31

This repository has moved tolaminas-api-tools/api-tools-configuration.

Build StatusCoverage Status

Introduction

zf-configuration is a module that provides configuration services that provide for theruntime management and modification of Zend Framework application configuration files.

Requirements

Please see thecomposer.json file.

Installation

Run the followingcomposer command:

$composer require zfcampus/zf-configuration

Alternately, manually add the following to yourcomposer.json, in therequire section:

"require":{"zfcampus/zf-configuration":"^1.2"}

And then runcomposer update to ensure the module is installed.

Finally, add the module name to your project'sconfig/application.config.php under themoduleskey:

return [/* ... */'modules' => [/* ... */'ZF\Configuration',    ],/* ... */];

zf-component-installer

If you usezf-component-installer,that plugin will install zf-configuration as a module for you.

Configuration

User Configuration

The top-level configuration key for user configuration of this module iszf-configuration.

'zf-configuration' => ['config_file' =>'config/autoload/development.php','enable_short_array' =>false,'class_name_scalars' =>false,],

Key:enable_short_array

Set this value to a booleantrue if you want to use PHP 5.4's square bracket (aka "short") arraysyntax.

Key:class_name_scalars

  • Since 1.2.1

Set this value to a booleantrue if you want to use PHP 5.5's class name scalars (::class notation).

ZF Events

There are no events or listeners.

ZF Services

ZF\Configuration\ConfigWriter

ZF\Configuration\ConfigWriter is by default an instance ofZend\Config\Writer\PhpArray. Thisservice serves the purpose of providing the necessary dependencies forConfigResource andConfigResourceFactory.

ZF\Configuration\ConfigResource

ZF\Configuration\ConfigResource service is used for modifying an existing configuration files withmethods such aspatch() andreplace(). The service returned by the service manager is bound tothe file specified in theconfig_file key.

ZF\Configuration\ConfigResourceFactory

ZF\Configuration\ConfigResourceFactory is a factory service that provides consumers with theability to createZF\Configuration\ConfigResource objects, with dependencies injected for specificconfig files (not the one listed in themodule.config.php.

ZF\Configuration\ModuleUtils

ZF\Configuration\ModuleUtils is a service that consumes theModuleManager and provides theability to traverse modules to find their path on disk as well as the path to their configurationfiles.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors10

Languages


[8]ページ先頭

©2009-2025 Movatter.jp