Slide 33
Slide 33 text
How to use Puli in your application?
33
// /vendor/acme/custom-library/puli.json
{
"resources": {
"/config": "res/config",
"/translations": "res/translations"
},
"provide": {
"/config/symfony-services.yml": "symfony/services",
"/config/pimple-services.yml": "pimple/services",
"/config/php-di-services.yml": "php-di/services",
"/translations/*.xlst": "php-fig/xlst-translations"
}
}
Autoload specialized files
Usable by libraries!
Binding are not necessarily
used by the “consumer”