tuck / converter-bundle
Adds a command for converting service container configs to other file formats
Installs: 24 975
Dependents: 1
Suggesters: 0
Security: 0
Stars: 71
Watchers: 3
Forks: 6
Open Issues: 3
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/console: >=2.3
- symfony/framework-bundle: ~2.3
Requires (Dev)
- mockery/mockery: ~0.8
- phpunit/phpunit: ~3.7
This package is auto-updated.
Last update: 2024-12-12 04:20:57 UTC
README
Adds the Symfony2 command "container:convert" which converts service config files to other formats
For one-off files, there's also a hosted Web UI you can use instead of installing this bundle.
What it does
You can specify the file to convert either on the commandline:
./app/console container:convert yml path/to/file.xml
Or leave out the file and do the conversion interactively.
./app/console container:convert yml
Adding the -o flag will output the new file instead of prompting you to write it, presumably so you can pipe it to another process somewhere.
The actual conversion is based on Symfony's built-in loaders and dumpers, so this should be exceedingly reliable.
TODO
- Remove a coupling on input for file extension
- Update the DependencyInjection/*Extension files as well (perhaps with PHP-Parser?)
- Moar tests
Installation
Run the command below to install via Composer
composer require tuck/converter-bundle