Skip to content

Commit

Permalink
Fixed: Compatibility with ulrack/services 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankruijter committed Jun 3, 2020
1 parent 1017e1f commit bfe4d7f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 25 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: php
php:
- '7.2'
- '7.3'
- '7.4'

before_script:
- yes '' | pecl install yaml
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.0.1 - 2020-06-03

### Fixed
- Compatibility with ulrack/services 2.0

## 1.0.0 - 2020-05-02

### Added
- The initial implementation of the package.

# Versions
- [1.0.0 > Unreleased](https://github.com/ulrack/kernel/compare/1.0.0...HEAD)
- [1.0.1 > Unreleased](https://github.com/ulrack/kernel/compare/1.0.1...HEAD)
- [1.0.0 > 1.0.1](https://github.com/ulrack/kernel/compare/1.0.0...1.0.1)
42 changes: 21 additions & 21 deletions configuration/services/command-core.services.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,48 @@
"cli.default-theme": {
"class": "\\Ulrack\\Cli\\Component\\Theme\\DefaultTheme",
"parameters": {
"themeGenerator": "@{cli.theme-generator}"
"themeGenerator": "@{services.cli.theme-generator}"
}
},
"cli.theme-generator": {
"class": "\\Ulrack\\Cli\\Generator\\ThemeGenerator",
"parameters": {
"themeFactory": "@{cli.theme-factory}"
"themeFactory": "@{services.cli.theme-factory}"
}
},
"cli.theme-factory": {
"class": "\\Ulrack\\Cli\\Factory\\ThemeFactory",
"parameters": {
"ioFactory": "@{cli.io-factory}"
"ioFactory": "@{services.cli.io-factory}"
}
},
"cli.element-factory": {
"class": "\\Ulrack\\Cli\\Factory\\ElementFactory",
"parameters": {
"theme": "@{cli.theme}",
"ioFactory": "@{cli.io-factory}"
"theme": "@{services.cli.theme}",
"ioFactory": "@{services.cli.io-factory}"
}
},
"cli.error-element-factory": {
"class": "\\Ulrack\\Cli\\Factory\\ElementFactory",
"parameters": {
"theme": "@{cli.theme}",
"ioFactory": "@{cli.io-factory}",
"theme": "@{services.cli.theme}",
"ioFactory": "@{services.cli.io-factory}",
"useStderr": true
}
},
"cli.form-factory": {
"class": "\\Ulrack\\Cli\\Factory\\FormFactory",
"parameters": {
"theme": "@{cli.theme}",
"ioFactory": "@{cli.io-factory}"
"theme": "@{services.cli.theme}",
"ioFactory": "@{services.cli.io-factory}"
}
},
"cli.form-generator": {
"class": "\\Ulrack\\Cli\\Generator\\FormGenerator",
"parameters": {
"formFactory": "@{cli.form-factory}",
"elementFactory": "@{cli.element-factory}"
"formFactory": "@{services.cli.form-factory}",
"elementFactory": "@{services.cli.element-factory}"
}
},
"cli.command-configuration": {
Expand All @@ -58,21 +58,21 @@
"cli.output": {
"class": "\\Ulrack\\Command\\Component\\Command\\Output",
"parameters": {
"formGenerator": "@{cli.form-generator}",
"ioFactory": "@{cli.io-factory}",
"theme": "@{cli.theme}",
"elementFactory": "@{cli.element-factory}"
"formGenerator": "@{services.cli.form-generator}",
"ioFactory": "@{services.cli.io-factory}",
"theme": "@{services.cli.theme}",
"elementFactory": "@{services.cli.element-factory}"
}
},
"cli.command-router": {
"class": "\\Ulrack\\Command\\Component\\Router\\CommandRouter",
"parameters": {
"commandConfiguration": "@{cli.command-configuration}",
"serviceFactory": "@{cli.service-factory}",
"errorElementFactory": "@{cli.error-element-factory}",
"ioFactory": "@{cli.io-factory}",
"output": "@{cli.output}",
"formGenerator": "@{cli.form-generator}"
"commandConfiguration": "@{services.cli.command-configuration}",
"serviceFactory": "@{services.cli.service-factory}",
"errorElementFactory": "@{services.cli.error-element-factory}",
"ioFactory": "@{services.cli.io-factory}",
"output": "@{services.cli.output}",
"formGenerator": "@{services.cli.form-generator}"
}
}
}
2 changes: 1 addition & 1 deletion configuration/services/command.cache.clear.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"command.cache.clear": {
"class": "\\Ulrack\\CliApplication\\Command\\CacheClearCommand",
"parameters": {
"cacheManager": "@{core.cache.manager}"
"cacheManager": "@{services.core.cache.manager}"
}
}
}
4 changes: 2 additions & 2 deletions configuration/services/command.validate.configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"command.validate.configuration": {
"class": "\\Ulrack\\CliApplication\\Command\\ValidateConfigurationCommand",
"parameters": {
"configurationManager": "@{core.configuration.manager}",
"validationManager": "@{core.validation.manager}"
"configurationManager": "@{services.core.configuration.manager}",
"validationManager": "@{services.core.validation.manager}"
}
}
}

0 comments on commit bfe4d7f

Please sign in to comment.