dgfip-si1 / application
Provides a container to command line applications.
1.1.0-rc1
2023-01-31 11:57 UTC
Requires
- php: >=8.1
- composer/composer: ^2,>=2.4
- consolidation/robo: ^4.0
- dgfip-si1/config-helper: ^1.0,>=1.0.3
- league/container: ^4.0,>=4.2
- monolog/monolog: ^3.2
- symfony/console: ^6
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.2
- dgfip-si1/test-logger: >= 1.0.1-alpha
- ergebnis/composer-normalize: ^2.28
- escapestudios/symfony2-coding-standard: ^3.x-dev
- infection/infection: ^0.26.6
- mikey179/vfsstream: ^1.6,>=1.6.11
- mockery/mockery: ^1.5
- php-parallel-lint/php-parallel-lint: ^1.3
- phpcompatibility/php-compatibility: ^9.3
- phpmetrics/phpmetrics: ^2.8
- phpro/grumphp-shim: ^1.13
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-mockery: ^1
- phpstan/phpstan-strict-rules: ^1.4
- phpstan/phpstan-symfony: *
- phpunit/phpunit: ^9.5,>=9.5.26
- roave/security-advisories: dev-latest
- slevomat/coding-standard: ^8.4
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-10-29 06:19:22 UTC
README
Injecting configuration data
default configuration : ./config.yml
if it does not exists, no configuration data - but default values may be generated by schema.
Option --config : replace default configuration file
Option --ad-config : adds a configuration file. (multiple values allowed)
Finding configuration files :
by populating values in dgfip-si1/Application internal configuration. .application-config.yml
:
dgfip-si1:
configuration:
root_dir : /path/to/config # default to application root dir
path_patterns: # default : []
- [Cc]onfiguration
- config-data
name_patterns: # default : ['config.yml']
- '*.yml'
sort_by_name: # default : false
# true: sort by filename instead of by full path
recurse: # default false (true = recurse sub directories)
Programaticaly
by using $app->config() methods add-file()
, add-array()
, findConfigFiles()
or set()
see dgfip-si1/config-helper