A CLI-Tool to convert DI-config files to disco configurations
Open Issues: 1
- php: ^7.1
- roave/security-advisories: dev-master
- symfony/console: ^4.0
- humbug/php-scoper: ^0.6.0
- infection/infection: ^0.8.1
- mockery/mockery: ^1.0
- phpunit/phpunit: ^7.0
- tm/tooly-composer-script: ^1.2
Create a configuration for Disco from your current DI-Configuration.
Download the latest PHAR-file from https://github.com/tonymanero/manero/releases and invoke it within your applications working directory.
php manero.phar convert:<container-implementation> path/to/config.php
This will create a trait
ManeroConfigTrait.php from the container-implementations configuration.
There will be some manual labour needed to finalize the configuration due to quirks in the way f.e. ZendExpressive configures it's DI.
You will also need to provide the propper namespace for the trait.
To get a list of currently available container-implementations invoke
Tony Manero is the main character from the film Saturday Night Fever
Contributions are welcome! If you find that a conversion from your favourite DI-Container-implementation is missing, feel free to create a PullRequest.
Copyright (c) Manero Contributors. All rights reserved.
Licensed under the MIT License. See LICENSE.md file in the project root for full license information.