Property | Type | Description | |
---|---|---|---|
$app | Silex\Application | ||
$started | boolean | ||
$useSsl | boolean |
Method | Description | |
---|---|---|
__construct ( Silex\Application $app ) | Constructor. | |
checkPackage ( ) : array | Check for packages that need to be installed or updated. | |
dependsPackage ( string $packageName, string $constraint ) | Find which packages cause the given package to be installed. | |
dumpAutoload ( ) | Dump fresh autoloader. | |
getAllPackages ( ) : Bolt\Composer\PackageCollection | Get packages that a properly installed, pending installed and locally installed. | |
getMessages ( ) : string[] | Get the stored messages. | |
getOutput ( ) : string | Return the output from the last IO. | |
initJson ( string $file, array $data = [] ) | Initialise a new JSON file. | |
installPackages ( ) : integer | Install configured packages. | |
prohibitsPackage ( string $packageName, string $constraint ) | Find which packages prevent the given package from being installed. | |
removePackage ( array $packages ) : integer | Remove packages from the root install. | |
requirePackage ( array $packages ) : integer | Require (install) packages. | |
searchPackage ( array $packages ) : array | Search for packages. | |
showPackage ( string $target, string $package = '', string $version = '', boolean $root = false ) : array | Show packages. | |
updatePackage ( array $packages ) : integer | Update packages in the root install. | |
useSsl ( ) : boolean | Check if we can/should use SSL/TLS/HTTP2 or HTTP. |
Method | Description | |
---|---|---|
linkConfig ( Bolt\Extension\ResolvedExtension $extension ) : string | Return the URI for a package's config file edit window. | |
linkReadMe ( Bolt\Extension\ResolvedExtension $extension ) : string | Return the URI for a package's readme. | |
ping ( boolean $addQuery = false ) | Ping site to see if we have a valid connection and it is responding correctly. | |
setup ( ) | Set up function. | |
updateJson ( ) | Set up Composer JSON file. |
public __construct ( Silex\Application $app ) | ||
$app | Silex\Application |
public checkPackage ( ) : array | ||
return | array |
public dependsPackage ( string $packageName, string $constraint ) | ||
$packageName | string | |
$constraint | string |
public getAllPackages ( ) : Bolt\Composer\PackageCollection | ||
return | Bolt\Composer\PackageCollection |
public getMessages ( ) : string[] | ||
return | string[] |
public installPackages ( ) : integer | ||
return | integer | 0 on success or a positive error code on failure |
public prohibitsPackage ( string $packageName, string $constraint ) | ||
$packageName | string | |
$constraint | string |
public removePackage ( array $packages ) : integer | ||
$packages | array | array Indexed array of package names to remove |
return | integer | 0 on success or a positive error code on failure |
public requirePackage ( array $packages ) : integer | ||
$packages | array | array Associative array of package names/versions to remove Format: ['name' => '', 'version' => ''] |
return | integer | 0 on success or a positive error code on failure |
public searchPackage ( array $packages ) : array | ||
$packages | array | array Indexed array of package names to search |
return | array | List of matching packages |
public updatePackage ( array $packages ) : integer | ||
$packages | array | array Indexed array of package names to update |
return | integer | 0 on success or a positive error code on failure |