ComposerManager
        
        Composer manager
    
    
 class System\Classes\ComposerManagerThis 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 | Type | Description | 
|---|---|---|
| $vendorPath | string | 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 | Type | Description | 
|---|---|---|
| $path | string | string | 
| $vendorDir | mixed | 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 | Type | Description | 
|---|---|---|
| $container | mixed | mixed | 
Returns
            void
                
            
                            
                    inherited
                
            
            
                public
            
                            
                    static
                
                                        
                    final
                
            
            instance ($container = null)
                            : static
                    
                    
                Inherited from
                
                    Singleton
                
            
        
        Create a new instance of this singleton.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $container | mixed | mixed | 
Returns
            static
                inherited protected final __construct ()
                Inherited from
                
                    Singleton
                
            
        
        Constructor.
Returns
            mixed
                
    Copyright © 2025 Winter CMS