tonymanero / manero
A CLI-Tool to convert DI-config files to disco configurations
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 1
Type:project
Requires
- php: ^7.1
- roave/security-advisories: dev-master
- symfony/console: ^4.0
Requires (Dev)
- 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
README
Create a configuration for Disco from your current DI-Configuration.
Usage
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 php manero.phar
.
Name
Tony Manero is the main character from the film Saturday Night Fever
Contributions
Contributions are welcome! If you find that a conversion from your favourite DI-Container-implementation is missing, feel free to create a PullRequest.
License
Copyright (c) Manero Contributors. All rights reserved.
Licensed under the MIT License. See LICENSE.md file in the project root for full license information.