PHP 클래스 Symfony\Installer\Manager\ComposerManager

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

공개 메소드들

메소드 설명
__construct ( $projectDir )
createPackageName ( $projectName ) : string Generates a good Composer project name based on the application name and on the user name.
getPackageVersion ( $packageName )
initializeProjectConfig ( )
updateProjectConfig ( array $newConfig )

비공개 메소드들

메소드 설명
fixPackageName ( string $name ) : string Transforms a project name into a valid Composer package name.
getComposerContentHash ( string $composerJsonFileContents ) : string Returns the md5 hash of the sorted content of the composer file.
getProjectConfig ( ) : array It returns the project's Composer config as a PHP array.
saveProjectConfig ( array $config ) It saves the given PHP array as the project's Composer config. In addition to JSON-serializing the contents, it synchronizes the composer.lock file to avoid out-of-sync Composer errors.
syncComposerLockFile ( ) Updates the hash values stored in composer.lock to avoid out-of-sync problems when the composer.json file contents are changed.

메소드 상세

__construct() 공개 메소드

public __construct ( $projectDir )

createPackageName() 공개 메소드

Generates a good Composer project name based on the application name and on the user name.
public createPackageName ( $projectName ) : string
$projectName
리턴 string The generated Composer package name

getPackageVersion() 공개 메소드

public getPackageVersion ( $packageName )

initializeProjectConfig() 공개 메소드

updateProjectConfig() 공개 메소드

public updateProjectConfig ( array $newConfig )
$newConfig array