Trait PluginAssetsTrait
trait for symlinking / copying plugin assets to app's webroot.
        
    Namespace: Cake\Command
    
    
    
      
  
      Property Summary
Method Summary
- 
          _copyDirectory() protectedCopy directory 
- 
          _createDirectory() protectedCreate directory 
- 
          _createSymlink() protectedCreate symlink 
- 
          _list() protectedGet list of plugins to process. Plugins without a webroot directory are skipped. 
- 
          _process() protectedProcess plugins 
- 
          _remove() protectedRemove folder/symlink. 
Method Detail
_copyDirectory() ¶ protected
_copyDirectory(string $source, string $destination): boolCopy directory
Parameters
- 
                string$source
- Source directory 
- 
                string$destination
- Destination directory 
Returns
bool_createDirectory() ¶ protected
_createDirectory(string $dir): boolCreate directory
Parameters
- 
                string$dir
- Directory name 
Returns
bool_createSymlink() ¶ protected
_createSymlink(string $target, string $link): boolCreate symlink
Parameters
- 
                string$target
- Target directory 
- 
                string$link
- Link name 
Returns
bool_list() ¶ protected
_list(string|null $name = null): array<string, mixed>Get list of plugins to process. Plugins without a webroot directory are skipped.
Parameters
- 
                string|null$name optional
- Name of plugin for which to symlink assets. If null all plugins will be processed. 
Returns
array<string, mixed>List of plugins with meta data.
_process() ¶ protected
_process(array<string, mixed> $plugins, bool $copy = false, bool $overwrite = false): voidProcess plugins
Parameters
- 
                array<string, mixed>$plugins
- List of plugins to process 
- 
                bool$copy optional
- Force copy mode. Default false. 
- 
                bool$overwrite optional
- Overwrite existing files. 
Returns
void_remove() ¶ protected
_remove(array<string, mixed> $config): boolRemove folder/symlink.
Parameters
- 
                array<string, mixed>$config
- Plugin config. 
Returns
bool