KnpRadBundle
KnpRadBundle copied to clipboard
[RFC] it could load every yml file present in config/services folder
for example:
$path = __DIR__.'/Resources/config/services';
foreach (Finder::create()->name('*.yml')->in($path) as $file) {
$loader->load($file->getPathname());
}
Interesting idea although it's more common to store service definition files into Resources/config directly.
Or maybe it could load recursively all yml files from Resources/config than contains a parameters or services key?
And maybe it should allow user to autoload service def through xml files (by a rad.configuration.format config key that contain yml by default for example).
yeah, the path I meant is src/App/Resources/config/services.
The last folder (services) is interesting because Resources/config is full of unrelated stuff, and it's messy to mix unrelated yml files (routing & DIC f.e).
Concerning the file format, let's use the DelegatingFileLoader, it will gracefully handle yml, xliff, php, and co.
DelegatingLoader => 
What is the "co" format you mention?
i knew it was amibguous :) I meant "& co" => "and all that stuff" => "etcaetera" :)
Oh I thought you meant http://bit.ly/18Eq63e
bastard :)