Properties

$devMode

$devMode : boolean

Type

boolean

$classMapAuthoritative

$classMapAuthoritative : boolean

Type

boolean

$apcu

$apcu : boolean

Type

boolean

$runScripts

$runScripts : boolean

Type

boolean

Methods

setDevMode()

setDevMode(  $devMode = true) 

Parameters

$devMode

setClassMapAuthoritative()

setClassMapAuthoritative(boolean  $classMapAuthoritative) 

Whether or not generated autoloader considers the class map authoritative.

Parameters

boolean $classMapAuthoritative

setApcu()

setApcu(boolean  $apcu) 

Whether or not generated autoloader considers APCu caching.

Parameters

boolean $apcu

setRunScripts()

setRunScripts(boolean  $runScripts = true) 

Set whether to run scripts or not

Parameters

boolean $runScripts

dump()

dump(\Composer\Config  $config, \Composer\Repository\InstalledRepositoryInterface  $localRepo, \Composer\Package\PackageInterface  $mainPackage, \Composer\Installer\InstallationManager  $installationManager,   $targetDir,   $scanPsr0Packages = false,   $suffix = '') 

Parameters

\Composer\Config $config
\Composer\Repository\InstalledRepositoryInterface $localRepo
\Composer\Package\PackageInterface $mainPackage
\Composer\Installer\InstallationManager $installationManager
$targetDir
$scanPsr0Packages
$suffix

parseAutoloads()

parseAutoloads(array  $packageMap, \Composer\Package\PackageInterface  $mainPackage, boolean  $filterOutRequireDevPackages = false) : array

Compiles an ordered list of namespace => path mappings

Parameters

array $packageMap

array of array(package, installDir-relative-to-composer.json)

\Composer\Package\PackageInterface $mainPackage

root package instance

boolean $filterOutRequireDevPackages

whether to filter out require-dev packages

Returns

array —

array('psr-0' => array('Ns\Foo' => array('installDir')))

createLoader()

createLoader(array  $autoloads) : \Composer\Autoload\ClassLoader

Registers an autoloader based on an autoload map returned by parseAutoloads

Parameters

array $autoloads

see parseAutoloads return value

Returns

\Composer\Autoload\ClassLoader

validatePackage()

validatePackage(\Composer\Package\PackageInterface  $package) 

Parameters

\Composer\Package\PackageInterface $package

Throws

\InvalidArgumentException

Throws an exception, if the package has illegal settings.

getIncludePathsFile()

getIncludePathsFile(array  $packageMap, \Composer\Util\Filesystem  $filesystem,   $basePath,   $vendorPath,   $vendorPathCode,   $appBaseDirCode) 

Parameters

array $packageMap
\Composer\Util\Filesystem $filesystem
$basePath
$vendorPath
$vendorPathCode
$appBaseDirCode

getIncludeFilesFile()

getIncludeFilesFile(array  $files, \Composer\Util\Filesystem  $filesystem,   $basePath,   $vendorPath,   $vendorPathCode,   $appBaseDirCode) 

Parameters

array $files
\Composer\Util\Filesystem $filesystem
$basePath
$vendorPath
$vendorPathCode
$appBaseDirCode

getPathCode()

getPathCode(\Composer\Util\Filesystem  $filesystem,   $basePath,   $vendorPath,   $path) 

Parameters

\Composer\Util\Filesystem $filesystem
$basePath
$vendorPath
$path

getAutoloadFile()

getAutoloadFile(  $vendorPathToTargetDirCode,   $suffix) 

Parameters

$vendorPathToTargetDirCode
$suffix

getAutoloadRealFile()

getAutoloadRealFile(  $useClassMap,   $useIncludePath,   $targetDirLoader,   $useIncludeFiles,   $vendorPathCode,   $appBaseDirCode,   $suffix,   $useGlobalIncludePath,   $prependAutoloader,   $staticPhpVersion = 70000) 

Parameters

$useClassMap
$useIncludePath
$targetDirLoader
$useIncludeFiles
$vendorPathCode
$appBaseDirCode
$suffix
$useGlobalIncludePath
$prependAutoloader
$staticPhpVersion

getStaticFile()

getStaticFile(  $suffix,   $targetDir,   $vendorPath,   $basePath,   $staticPhpVersion) 

Parameters

$suffix
$targetDir
$vendorPath
$basePath
$staticPhpVersion

parseAutoloadsType()

parseAutoloadsType(array  $packageMap,   $type, \Composer\Package\PackageInterface  $mainPackage) 

Parameters

array $packageMap
$type
\Composer\Package\PackageInterface $mainPackage

filterPackageMap()

filterPackageMap(array  $packageMap, \Composer\Package\PackageInterface  $mainPackage) : array

Filters out dev-dependencies

Parameters

array $packageMap
\Composer\Package\PackageInterface $mainPackage

Returns

array

sortPackageMap()

sortPackageMap(array  $packageMap) : array

Sorts packages by dependency weight

Packages of equal weight retain the original order

Parameters

array $packageMap

Returns

array

safeCopy()

safeCopy(string  $source, string  $target) 

Copy file using stream_copy_to_stream to work around https://bugs.php.net/bug.php?id=6463

Parameters

string $source
string $target

addClassMapCode()

addClassMapCode(  $filesystem,   $basePath,   $vendorPath,   $dir,   $blacklist = null,   $namespaceFilter = null, array  $classMap = array()) 

Parameters

$filesystem
$basePath
$vendorPath
$dir
$blacklist
$namespaceFilter
array $classMap

generateClassMap()

generateClassMap(  $dir,   $blacklist = null,   $namespaceFilter = null,   $showAmbiguousWarning = true) 

Parameters

$dir
$blacklist
$namespaceFilter
$showAmbiguousWarning