[Bug 1173773] Review Request: php-bantu-ini-get-wrapper - Convenience wrapper around PHP's ini_get() function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1173773



--- Comment #1 from Adam Williamson (Fedora) <adamw+fedora@xxxxxxxxxxxxxxxxx> ---
This is one of the new 3rdparty deps that ownCloud 8.x will require, I'm trying
to get out ahead of them.

We still haven't (I don't think?) decided on an official strategy for packaging
and unbundling PSR-4 autoloaded libraries. However, one possibility is perhaps
to do something with Composer's ${vendorDir} setting. If you look at
composer/autoload_psr4.php for ownCloud 3rdparty git master, you see:

$vendorDir = dirname(dirname(__FILE__));
$baseDir = $vendorDir;

return array(
    'bantu\\IniGetWrapper\\' => array($vendorDir .
'/bantu/ini-get-wrapper/src'),
    'Punic\\' => array($vendorDir . '/punic/punic/code'),
);

so I decided as a first cut to install this package such that the path
/bantu/ini-get-wrapper/src - that is, /(vendor)/(name)/(PSR-4 base directory) -
is valid relative to /usr/share/php . As a first cut that sort of intuitively
feels like the most appropriate thing to do, to me.

The 'autoloader' for purpose of running the unit tests is of course ridiculous
and would break the moment upstream touches pretty much anything. A more
elegant approach would, I suppose, be to have some sort of PSR-4 autoloader
implementation available for this kind of purpose, and some scriptlets to use
it in a particular package build.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]