ComposerManager

Composer manager

 class System\Classes\ComposerManager

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.

Traits

Trait Description
Singleton

Singleton trait.

Properties

protected $classMapPool : mixed

protected $includeFilesPool : mixed

protected $loader : Composer\Autoload\ClassLoader

The primary composer instance.

protected $namespacePool : mixed

protected $psr4Pool : mixed

Methods

public autoload (string $vendorPath) : void

Similar function to including vendor/autoload.php.

Parameters
Property Description
$vendorPath
string

Absoulte path to the vendor directory.

Returns
void

public init ()

Returns
mixed

protected preloadIncludeFilesPool ()

Returns
mixed

protected preloadPools ()

Returns
mixed

protected stripVendorDir (string $path, $vendorDir) : string

Removes the vendor directory from a path.

Parameters
Property Description
$path
string
$vendorDir
mixed
Returns
string

public __clone ()

Inherited from Singleton
Returns
mixed

public __wakeup ()

Inherited from Singleton
Returns
mixed

public static final forgetInstance ($container = null) : void

Inherited from Singleton

Forget this singleton's instance if it exists

Parameters
Property Description
$container
mixed
Returns
void

public static final instance ($container = null) : static

Inherited from Singleton

Create a new instance of this singleton.

Parameters
Property Description
$container
mixed
Returns
static

protected final __construct ()

Inherited from Singleton

Constructor.

Returns
mixed
Copyright © 2024 Winter CMS