[commits] [Wiki] changed: Project/NoMorePear

Ralf Lang (B1 Systems GmbH) lang at b1-systems.de
Wed Feb 13 14:49:15 UTC 2019


rlang  Wed, 13 Feb 2019 14:49:15 +0000

Modified page: https://wiki.horde.org/Project/NoMorePear
New Revision:  3
Change log:  On autoloaders

@@ -59,8 +59,35 @@

  +++ Packagist

  Add tool chain to create and update packages on packagist for easier  
consumption.
+
++++ Autoloading and fixed loading
+++++ Examining horde base bootstrapping:
+
+horde/horde/index.php require_once lib/Application
+Horde/Application.php require_once core.php
+core.php checks for horde.local.php  -- possible to announce a  
composer setup here
+Either include_once Horde/Autoloader/Cache.php or require_once  
Horde/Autoloader/Default.php
+
+++++ Examining nag bootstrapping:
+horde/nag/index.php and other client pages require_once  
nag/lib/Application.php
+nag probes for horde_dir (either info from horde.local.php or  
directory above nag dir)
+finally load (hordedir)/lib/core.php
+
+-> both in base and apps, we can edit horde.local.php for hinting and  
autoloader ultimately comes from horde/lib/core.php
+
+++++ Issues with Horde_Autoloader_Default and Horde_Autoloader_Cache
+
+Horde_Autoloader_Default has unconditional require_onces
+Horde_Autoloader_Default registers unconditionally when loaded
+Horde_Autoloader_Cache requires/registers Horde_Autoloader_Default  
unconditionally
+
+
+++++ Examining git-tools as a composer-native app:
+
+git-tools binary detects the composer autoloader entrypoint  
vendor/autoload.php and require_once it.
+the composer autoloader is configured to provide a psr-4 autoloader  
for the \\Horde\\GitTools namespace to ./lib


  ++ Resources




More information about the commits mailing list