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

inherited public __clone ()

Inherited from Singleton
Returns
mixed

inherited public __wakeup ()

Inherited from Singleton
Returns
mixed

inherited 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

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

Inherited from Singleton

Create a new instance of this singleton.

Parameters
Property Description
$container
mixed
Returns
static

inherited protected final __construct ()

Inherited from Singleton

Constructor.

Returns
mixed
Copyright © 2024 Winter CMS