Class PluginConfig
PluginConfig contains all available plugins and their config if/how they should be loaded
Namespace: Cake\Core
Method Summary
-
getAppConfig() public static
Get the config how plugins should be loaded
-
getPackageNameFromPath() protected static
-
getVersions() public static
-
loadInstallerConfig() public static
Load the path information stored in vendor/cakephp-plugins.php
Method Detail
getAppConfig() ¶ public static
getAppConfig(string|null $path = null): array
Get the config how plugins should be loaded
Parameters
-
string|null
$path optional The absolute path to the composer.lock file to retrieve the versions from
Returns
array
getPackageNameFromPath() ¶ protected static
getPackageNameFromPath(string $path): string
Parameters
-
string
$path
Returns
string
getVersions() ¶ public static
getVersions(string|null $path = null): array
Parameters
-
string|null
$path optional The absolute path to the composer.lock file to retrieve the versions from
Returns
array
loadInstallerConfig() ¶ public static
loadInstallerConfig(): void
Load the path information stored in vendor/cakephp-plugins.php
This file is generated by the cakephp/plugin-installer package and used
to locate plugins on the filesystem as applications can use extra.plugin-paths
in their composer.json file to move plugin outside of vendor/
Returns
void