https://github.com/dantleech/sfdc
Symfony Fragment Documentation Converter
https://github.com/dantleech/sfdc
Last synced: 11 months ago
JSON representation
Symfony Fragment Documentation Converter
- Host: GitHub
- URL: https://github.com/dantleech/sfdc
- Owner: dantleech
- Created: 2013-11-01T11:01:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-03T09:43:01.000Z (over 12 years ago)
- Last Synced: 2024-10-16T04:17:16.660Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 102 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Symfony Documentation XML Fragment Converter
This application converts well defined XML fragments into alternative formats,
e.g.
````bash
$ php sfdc.php test/Type/SfContainer3.xml
xml
---
sendmail
yaml
----
services:
my_mailer:
class: Acme\HelloBundle\Mailer
arguments:
- sendmail
php
---
use Symfony\Component\DependencyInjection\Reference;
// ...
$container->register('my_mailer', 'Acme\HelloBundle\Mailer')
->addArgument('sendmail')
;
````
There is also a web interface accessed via `index.php`: http://sfdc.dantleech.com.
## Converters
The application works by asking each class in a set of "Converter" classes if
they can convert the given XML fragment. Each converter returns a score
depending on how specific it is.