[Agavi-Dev] Move autoload.xml loading to bootstrap()

7 views
Skip to first unread message

David Zülke

unread,
Jan 7, 2010, 1:40:20 PM1/7/10
to d...@lists.agavi.org
http://pastie.org/770456

Any objections?

- David


Mike Seth

unread,
Jan 14, 2010, 12:28:46 PM1/14/10
to Agavi Dev Mailing List
David Zülke wrote:
> http://pastie.org/770456
>
> Any objections?
>
Perhaps it would be better to do this *after* settings.xml and not
before? Reading settings.xml would almost certainly yield
no runtime effects that need something out of the autoload list to be
loaded; on the other hand, autoload.xml may use configuration
values declared in settings.xml. I imagine this is conceivable:

<autoload
name="Dogtrine">/tmp/argh/Dogtrine/%org.rage.wtf.version_that_works_today%/Dogtrine.class.php</autoload>


_______________________________________________
Agavi Dev Mailing List
d...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/dev

Mike Seth

unread,
Jan 14, 2010, 12:34:13 PM1/14/10
to Agavi Dev Mailing List
Mike Seth wrote:
> David Zülke wrote:
>> http://pastie.org/770456
>>
>> Any objections?
>>
> Perhaps it would be better to do this *after* settings.xml and not
> before? Reading settings.xml would almost certainly yield
> no runtime effects that need something out of the autoload list to be
> loaded; on the other hand, autoload.xml may use configuration
> values declared in settings.xml. I imagine this is conceivable:
>
> <autoload
> name="Dogtrine">/tmp/argh/Dogtrine/%org.rage.wtf.version_that_works_today%/Dogtrine.class.php</autoload>
>
>
Oh wait, there's no directive substitution inside the value itself, is
there? Silly me.

In either case if it can be guaranteed that parsing of autoload.xml
doesn't actually cause execution of any third party code that may depend
on settings.xml then I don't think there's a problem.

David Zülke

unread,
Jan 14, 2010, 3:05:39 PM1/14/10
to Agavi Dev Mailing List
The first config compilation triggers the compilation of
config_handlers.xml (which is done through a static mapping for the
config handler definition). After that, autoload.xml is compiled, then
settings.xml. The settings.xml compilation might depend on autoloads
(e.g. for the assigned config handler). I'd rather not change that
order...

Mike Seth

unread,
Jan 14, 2010, 6:25:14 PM1/14/10
to Agavi Dev Mailing List
David Zülke wrote:
> The first config compilation triggers the compilation of
> config_handlers.xml (which is done through a static mapping for the
> config handler definition). After that, autoload.xml is compiled, then
> settings.xml. The settings.xml compilation might depend on autoloads
> (e.g. for the assigned config handler). I'd rather not change that
> order...
Makes perfect sense.
Reply all
Reply to author
Forward
0 new messages