class ComposerManager

ComposerManager Class

Traits

Singleton trait.

Properties

static protected $instance from  Singleton
protected ClassLoader $loader
protected $namespacePool
protected $psr4Pool
protected $classMapPool
protected $includeFilesPool

Methods

static 
instance()

Create a new instance of this singleton.

static 
forgetInstance()

Forget this singleton's instance if it exists

__construct()

Constructor.

initialize()

No description

__clone()

No description

__wakeup()

No description

void
autoload(string $vendorPath)

Similar function to including vendor/autoload.php.

listInstalledPackages($vendorPath)

No description

getConfig($path, $type = 'extension')

No description

preloadPools()

No description

preloadIncludeFilesPool()

No description

string
stripVendorDir(string $path, $vendorDir)

Removes the vendor directory from a path.

Details

in Singleton at line 18
final static instance()

Create a new instance of this singleton.

in Singleton at line 28
final static forgetInstance()

Forget this singleton's instance if it exists

in Singleton at line 36
final protected __construct()

Constructor.

at line 27
initialize()

No description

in Singleton at line 48
__clone()

No description

in Singleton at line 53
__wakeup()

No description

at line 40
void autoload(string $vendorPath)

Similar function to including vendor/autoload.php.

Parameters

string $vendorPath

Absoulte path to the vendor directory.

Return Value

void

at line 82
listInstalledPackages($vendorPath)

No description

Parameters

$vendorPath

at line 93
getConfig($path, $type = 'extension')

No description

Parameters

$path
$type

at line 112
protected preloadPools()

No description

at line 120
protected preloadIncludeFilesPool()

No description

at line 143
protected string stripVendorDir(string $path, $vendorDir)

Removes the vendor directory from a path.

Parameters

string $path
$vendorDir

Return Value

string