[commits] Horde branch master updated. 53c5cf65e2a7adf62cb6fa46d1d3e082252aae63

Chuck Hagenbuch chuck at horde.org
Fri Jun 4 20:15:23 UTC 2010


The branch "master" has been updated.
The following is a summary of the commits.

from: e61eab9e081640fb846a6a26dd23b6912df8bc07

77b7ed5 New Autoloader that uses modular ClassPathMappers to map classes to filenames, rather than hardcoding a lot of logic into the main Autoloader class. Also allows more flexibility since mappers can have any logic they need in them.
4708dd1 Don't throw an error if there aren't any interfaces set for some reason
0828fed Bootstrap the new autoloader and set it on the injector
53c5cf6 New autoloader usage (add a Prefix mapper instead of the static addClassPattern() method)

-----------------------------------------------------------------------

commit 77b7ed58d745b2a404d2c6f45600449626f57130
Author: Chuck Hagenbuch <chuck at horde.org>
Date:   Fri Jun 4 15:37:13 2010 -0400

    New Autoloader that uses modular ClassPathMappers to map classes to filenames,
    rather than hardcoding a lot of logic into the main Autoloader class. Also
    allows more flexibility since mappers can have any logic they need in them.

 framework/Autoloader/lib/Horde/Autoloader.php                     |  225 +----
 framework/Autoloader/lib/Horde/Autoloader/ClassPathMapper.php     |   14 +
 .../Autoloader/lib/Horde/Autoloader/ClassPathMapper/Default.php   |   35 +
 .../Autoloader/lib/Horde/Autoloader/ClassPathMapper/Prefix.php    |   35 +
 framework/Autoloader/package.xml                                  |   12 +
 framework/Autoloader/test/Horde/Autoloader/AllTests.php           |   31 +
 framework/Autoloader/test/Horde/Autoloader/AutoloaderTest.php     |  122 +++
 .../test/Horde/Autoloader/ClassPathMapper/DefaultTest.php         |   39 +
 .../test/Horde/Autoloader/ClassPathMapper/PrefixTest.php          |   34 +
 9 files changed, 364 insertions(+), 183 deletions(-)
 create mode 100644 framework/Autoloader/lib/Horde/Autoloader/ClassPathMapper.php
 create mode 100644 framework/Autoloader/lib/Horde/Autoloader/ClassPathMapper/Default.php
 create mode 100644 framework/Autoloader/lib/Horde/Autoloader/ClassPathMapper/Prefix.php
 create mode 100644 framework/Autoloader/test/Horde/Autoloader/AllTests.php
 create mode 100644 framework/Autoloader/test/Horde/Autoloader/AutoloaderTest.php
 create mode 100644 framework/Autoloader/test/Horde/Autoloader/ClassPathMapper/DefaultTest.php
 create mode 100644 framework/Autoloader/test/Horde/Autoloader/ClassPathMapper/PrefixTest.php

http://git.horde.org/diff.php/framework/Autoloader/lib/Horde/Autoloader.php?rt=horde-git&r1=8bebfc297b4c3e75e78302a09479305a691fe79c&r2=77b7ed58d745b2a404d2c6f45600449626f57130
http://git.horde.org/co.php/framework/Autoloader/lib/Horde/Autoloader/ClassPathMapper.php?rt=horde-git&r=77b7ed58d745b2a404d2c6f45600449626f57130
http://git.horde.org/co.php/framework/Autoloader/lib/Horde/Autoloader/ClassPathMapper/Default.php?rt=horde-git&r=77b7ed58d745b2a404d2c6f45600449626f57130
http://git.horde.org/co.php/framework/Autoloader/lib/Horde/Autoloader/ClassPathMapper/Prefix.php?rt=horde-git&r=77b7ed58d745b2a404d2c6f45600449626f57130
http://git.horde.org/diff.php/framework/Autoloader/package.xml?rt=horde-git&r1=113efdfb8ac72507e20164d2e7bfe0c295d47f93&r2=77b7ed58d745b2a404d2c6f45600449626f57130
http://git.horde.org/co.php/framework/Autoloader/test/Horde/Autoloader/AllTests.php?rt=horde-git&r=77b7ed58d745b2a404d2c6f45600449626f57130
http://git.horde.org/co.php/framework/Autoloader/test/Horde/Autoloader/AutoloaderTest.php?rt=horde-git&r=77b7ed58d745b2a404d2c6f45600449626f57130
http://git.horde.org/co.php/framework/Autoloader/test/Horde/Autoloader/ClassPathMapper/DefaultTest.php?rt=horde-git&r=77b7ed58d745b2a404d2c6f45600449626f57130
http://git.horde.org/co.php/framework/Autoloader/test/Horde/Autoloader/ClassPathMapper/PrefixTest.php?rt=horde-git&r=77b7ed58d745b2a404d2c6f45600449626f57130

-----------------------------------------------------------------------

commit 4708dd184c4f0df6d9cbeec3c93bec52d3ab87c7
Author: Chuck Hagenbuch <chuck at horde.org>
Date:   Fri Jun 4 15:48:16 2010 -0400

    Don't throw an error if there aren't any interfaces set for some reason

 framework/Core/lib/Horde/Registry.php |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

http://git.horde.org/diff.php/framework/Core/lib/Horde/Registry.php?rt=horde-git&r1=f1a520a5003e419b985f41662e6188b441a4814f&r2=4708dd184c4f0df6d9cbeec3c93bec52d3ab87c7

-----------------------------------------------------------------------

commit 0828fed3ace715065d644ccf8ff685da2980f184
Author: Chuck Hagenbuch <chuck at horde.org>
Date:   Fri Jun 4 15:52:51 2010 -0400

    Bootstrap the new autoloader and set it on the injector

 framework/Core/lib/Horde/Core/Autoloader.php |   22 ++++++++++++++++++++++
 framework/Core/lib/Horde/Registry.php        |    4 +++-
 framework/Core/package.xml                   |    2 ++
 horde/lib/core.php                           |    4 ++--
 4 files changed, 29 insertions(+), 3 deletions(-)
 create mode 100644 framework/Core/lib/Horde/Core/Autoloader.php

http://git.horde.org/co.php/framework/Core/lib/Horde/Core/Autoloader.php?rt=horde-git&r=0828fed3ace715065d644ccf8ff685da2980f184
http://git.horde.org/diff.php/framework/Core/lib/Horde/Registry.php?rt=horde-git&r1=4708dd184c4f0df6d9cbeec3c93bec52d3ab87c7&r2=0828fed3ace715065d644ccf8ff685da2980f184
http://git.horde.org/diff.php/framework/Core/package.xml?rt=horde-git&r1=1714871fc4a30e1a9f079b0e68290a6fad80a32c&r2=0828fed3ace715065d644ccf8ff685da2980f184
http://git.horde.org/diff.php/horde/lib/core.php?rt=horde-git&r1=a30c95a0915fcd77bb2addccdbd13a52a5ae6a5a&r2=0828fed3ace715065d644ccf8ff685da2980f184

-----------------------------------------------------------------------

commit 53c5cf65e2a7adf62cb6fa46d1d3e082252aae63
Author: Chuck Hagenbuch <chuck at horde.org>
Date:   Fri Jun 4 16:03:27 2010 -0400

    New autoloader usage (add a Prefix mapper instead of the static addClassPattern() method)

 horde/rampage.php                   |    3 +--
 ingo/lib/tests/AllTests.php         |    4 ++--
 koward/script/Koward/koward.php     |    8 ++++----
 koward/test/Koward/TestInit.php     |    5 ++---
 koward/www/htdocs/koward/koward.php |    8 ++++----
 kronolith/lib/Application.php       |    2 +-
 wicked/lib/Page.php                 |    4 ++--
 7 files changed, 16 insertions(+), 18 deletions(-)

http://git.horde.org/diff.php/horde/rampage.php?rt=horde-git&r1=b23cc31ca5d964fd8f9be807871eb0595aee63d9&r2=53c5cf65e2a7adf62cb6fa46d1d3e082252aae63
http://git.horde.org/diff.php/ingo/lib/tests/AllTests.php?rt=horde-git&r1=a04d974faf3fd7f46e2036a8917d2fab4091fbdb&r2=53c5cf65e2a7adf62cb6fa46d1d3e082252aae63
http://git.horde.org/diff.php/koward/script/Koward/koward.php?rt=horde-git&r1=54a26e22e01a369372381a50d79eb655339c0956&r2=53c5cf65e2a7adf62cb6fa46d1d3e082252aae63
http://git.horde.org/diff.php/koward/test/Koward/TestInit.php?rt=horde-git&r1=ef5cea689b8a5ecb12b46b9be5b03a4e7d09d314&r2=53c5cf65e2a7adf62cb6fa46d1d3e082252aae63
http://git.horde.org/diff.php/koward/www/htdocs/koward/koward.php?rt=horde-git&r1=240ff73e2a3bcfe5e5649e5d9153d87b25471d36&r2=53c5cf65e2a7adf62cb6fa46d1d3e082252aae63
http://git.horde.org/diff.php/kronolith/lib/Application.php?rt=horde-git&r1=4343b7a9079e436ff77770deb9adb6b1f38cc29c&r2=53c5cf65e2a7adf62cb6fa46d1d3e082252aae63
http://git.horde.org/diff.php/wicked/lib/Page.php?rt=horde-git&r1=4343b7a9079e436ff77770deb9adb6b1f38cc29c&r2=53c5cf65e2a7adf62cb6fa46d1d3e082252aae63




More information about the commits mailing list