X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FUpgrading.pod;h=0d1a60b521db8272022af123bc77643cb1365683;hp=6012f989e51621734141ee064a07f101a20f1ac6;hb=044e7667c0cb0cd8dac8b33df1d503abdab0d70c;hpb=067a21ea868757ad0d3ea1d4e80f74d61e0698fc diff --git a/lib/Catalyst/Upgrading.pod b/lib/Catalyst/Upgrading.pod index 6012f98..0d1a60b 100644 --- a/lib/Catalyst/Upgrading.pod +++ b/lib/Catalyst/Upgrading.pod @@ -63,16 +63,25 @@ In L: MyApp->config( 'Model::MyClass' => { - class => + class => 'MyClass', + args => { %args }, }); - - class My::Class - - some param - - +and now in core: + + MyApp->config( + inject_components => { + 'Model::MyClass' => { from_component => 'My::Class' }, + }, + 'Model::MyClass' => { + %args + }, + ); + +Although the cored behavior requires more code, its better separates concerns +as well as plays more into core Catalyst expections of how configuration shoul +look. Also we added a new develop console mode only warning when you call a component with arguments that don't expect or do anything meaningful with those args. Its