Files
gentoo/dev-php/phpdepend/files/autoload.php
Michael Orlitzky d6d393bf2e dev-php/phpdepend: new version 2.3.2 sans bundled dependencies.
Now that we have a framework for installing Composer packages, we
don't need to bundle the Symfony components that phpdepend uses. This
new version switches back to a source distribution and adds the
requisite RDEPENDs.

In addition, we now install phpdepend under /usr/share/phpdepend as
opposed to /usr/share/php/phpdepend. The latter is part of PHP's
"include" search path, and is only meant for library code.

Gentoo-Bug: 573340

Package-Manager: portage-2.3.0
2017-01-05 16:34:46 -05:00

20 lines
514 B
PHP

<?php
$vendor_dir = '/usr/share/php';
if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
require_once("${vendor_dir}/Fedora/Autoloader/autoload.php");
}
\Fedora\Autoloader\Autoload::addPsr4(
'PDepend\\',
__DIR__ . '/../src/main/php/PDepend'
);
\Fedora\Autoloader\Dependencies::required(
array(
"${vendor_dir}/Symfony/Component/Config/autoload.php",
"${vendor_dir}/Symfony/Component/DependencyInjection/autoload.php",
"${vendor_dir}/Symfony/Component/Filesystem/autoload.php"
)
);