Documentation

ComposerManager
in package
Uses Singleton

Composer manager

This class manages composer packages introduced by plugins. Each loaded package is added to a global pool to ensure a package is not loaded twice by the composer instance introduced by a plugin. This class is used as a substitute for the vendor/autoload.php file.

Tags
author

Alexey Bobkov, Samuel Georges

Table of Contents

$classMapPool  : mixed
$includeFilesPool  : mixed
$instance  : mixed
$loader  : ClassLoader
$namespacePool  : mixed
$psr4Pool  : mixed
__clone()  : mixed
__wakeup()  : mixed
autoload()  : void
Similar function to including vendor/autoload.php.
forgetInstance()  : mixed
Forget this singleton's instance if it exists
init()  : mixed
instance()  : mixed
Create a new instance of this singleton.
__construct()  : mixed
Constructor.
preloadIncludeFilesPool()  : mixed
preloadPools()  : mixed
stripVendorDir()  : string
Removes the vendor directory from a path.

Properties

$loader

protected ClassLoader $loader

The primary composer instance.

Methods

__clone()

public __clone() : mixed
Return values
mixed

__wakeup()

public __wakeup() : mixed
Return values
mixed

autoload()

Similar function to including vendor/autoload.php.

public autoload(string $vendorPath) : void
Parameters
$vendorPath : string

Absoulte path to the vendor directory.

Return values
void

forgetInstance()

Forget this singleton's instance if it exists

public final static forgetInstance() : mixed
Return values
mixed

instance()

Create a new instance of this singleton.

public final static instance() : mixed
Return values
mixed

__construct()

Constructor.

protected final __construct() : mixed
Return values
mixed

preloadIncludeFilesPool()

protected preloadIncludeFilesPool() : mixed
Return values
mixed

preloadPools()

protected preloadPools() : mixed
Return values
mixed

stripVendorDir()

Removes the vendor directory from a path.

protected stripVendorDir(string $path, mixed $vendorDir) : string
Parameters
$path : string
$vendorDir : mixed
Return values
string

Search results