[Catalyst-dev] Re: Config-only components
Aristotle Pagaltzis
pagaltzis at gmx.de
Wed Feb 13 09:08:58 GMT 2008
* Jonathan Rockway <jon at jrock.us> [2008-02-13 02:10]:
> Anyone else have an opinion on the worthiness of this patch for
> inclusion in 5.70?
It worries me faintly that this sort of thing has the potential
to conceal issues in rare edge cases, where a component is
missing or somehow failed to load without crashing the app. At
the very least the fact that a component was created implicitly
should be logged. Possibly there should also be a strict mode
that will
a) only create components implicitly if they have been declared
(eg. with an `implicit_components` key in the config for
Catalyst::Component::Implicit or something), and
b) possibly die screaming if it finds that a component declared
already explicitly.
The latter might be too much. The former would be just a small
bit of extra code though, and would provide an escape hatch for
debugging deployment issues, which isn’t a lot of fun even under
the best of circumstances.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst-dev
mailing list