PHP 클래스 Bolt\Composer\PackageManager

파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$app Silex\Application
$started boolean
$useSsl boolean

공개 메소드들

메소드 설명
__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.

비공개 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Silex\Application $app )
$app Silex\Application

checkPackage() 공개 메소드

Check for packages that need to be installed or updated.
public checkPackage ( ) : array
리턴 array

dependsPackage() 공개 메소드

Find which packages cause the given package to be installed.
public dependsPackage ( string $packageName, string $constraint )
$packageName string
$constraint string

dumpAutoload() 공개 메소드

Dump fresh autoloader.
public dumpAutoload ( )

getAllPackages() 공개 메소드

Get packages that a properly installed, pending installed and locally installed.
public getAllPackages ( ) : Bolt\Composer\PackageCollection
리턴 Bolt\Composer\PackageCollection

getMessages() 공개 메소드

Get the stored messages.
public getMessages ( ) : string[]
리턴 string[]

getOutput() 공개 메소드

Return the output from the last IO.
public getOutput ( ) : string
리턴 string

initJson() 공개 메소드

Initialise a new JSON file.
public initJson ( string $file, array $data = [] )
$file string File to initialise
$data array Data to be added as JSON paramter/value pairs

installPackages() 공개 메소드

Install configured packages.
public installPackages ( ) : integer
리턴 integer 0 on success or a positive error code on failure

prohibitsPackage() 공개 메소드

Find which packages prevent the given package from being installed.
public prohibitsPackage ( string $packageName, string $constraint )
$packageName string
$constraint string

removePackage() 공개 메소드

Remove packages from the root install.
public removePackage ( array $packages ) : integer
$packages array array Indexed array of package names to remove
리턴 integer 0 on success or a positive error code on failure

requirePackage() 공개 메소드

Require (install) packages.
public requirePackage ( array $packages ) : integer
$packages array array Associative array of package names/versions to remove Format: ['name' => '', 'version' => '']
리턴 integer 0 on success or a positive error code on failure

searchPackage() 공개 메소드

Search for packages.
public searchPackage ( array $packages ) : array
$packages array array Indexed array of package names to search
리턴 array List of matching packages

showPackage() 공개 메소드

Show packages.
public showPackage ( string $target, string $package = '', string $version = '', boolean $root = false ) : array
$target string
$package string
$version string
$root boolean
리턴 array

updatePackage() 공개 메소드

Update packages in the root install.
public updatePackage ( array $packages ) : integer
$packages array array Indexed array of package names to update
리턴 integer 0 on success or a positive error code on failure

useSsl() 공개 메소드

Check if we can/should use SSL/TLS/HTTP2 or HTTP.
public useSsl ( ) : boolean
리턴 boolean

프로퍼티 상세

$app 보호되어 있는 프로퍼티

protected Application,Silex $app
리턴 Silex\Application

$started 보호되어 있는 프로퍼티

protected bool $started
리턴 boolean

$useSsl 보호되어 있는 프로퍼티

protected bool $useSsl
리턴 boolean