class Composer

Properties

static protected $composerFile
static protected $pluginsDir
static protected $packagistUrl
static protected $packagistToken
static protected $pluginComposerFile
static protected $installedFlagPath
static protected $interceptionProxyDirectory
static protected $pluginCacheDirectory
static $basePlugins

Methods

static void
setPackagistUrl(string $packagistUrl)

set target packagist url

static void
setPackagistToken(string $authToken)

set packagist auth token

static void
command(CommandEvent $event)

composer가 실행될 때 호출된다. composer.plugins.json 파일이 있는지 조사하고, 생성한다.

static void
preUpdateOrInstall(Event $event)

preUpdateOrInstall

static void
postDependenciesSolving(InstallerEvent $event)

postDependenciesSolving

static void
postUpdate(Event $event)

composer 실행중 post-install-cmd, post-update-cmd 이벤트가 발생할 경우 실행된다.

getWriter(string $path)

ComposerFileWriter 인스턴스를 생성한다.

static void
applyRequire(ComposerFileWriter $writer)

plugin composer 파일에 등록된 플러그인 제어정보를 require에 적용한다.

static void
clearCompiled()

Clear the cached Laravel bootstrapping files.

static bool
deleteDirectory(string $directory, bool $preserve = false)

delete Directory

Details

at line 70
static void setPackagistUrl(string $packagistUrl)

set target packagist url

Parameters

string $packagistUrl target packagist url

Return Value

void

at line 82
static void setPackagistToken(string $authToken)

set packagist auth token

Parameters

string $authToken auth token(site token)

Return Value

void

at line 94
static void command(CommandEvent $event)

composer가 실행될 때 호출된다. composer.plugins.json 파일이 있는지 조사하고, 생성한다.

Parameters

CommandEvent $event composer가 제공하는 event

Return Value

void

at line 149
static void preUpdateOrInstall(Event $event)

preUpdateOrInstall

Parameters

Event $event event object

Return Value

void

at line 160
static void postDependenciesSolving(InstallerEvent $event)

postDependenciesSolving

Parameters

InstallerEvent $event event object

Return Value

void

at line 178
static void postUpdate(Event $event)

composer 실행중 post-install-cmd, post-update-cmd 이벤트가 발생할 경우 실행된다.

composer.plugins.json 파일을 현재 XE 상태에 맞춰 갱신한다.

Parameters

Event $event composer가 제공하는 event

Return Value

void

at line 209
static protected ComposerFileWriter getWriter(string $path)

ComposerFileWriter 인스턴스를 생성한다.

Parameters

string $path plugin용 composer 파일 경로

Return Value

ComposerFileWriter

Exceptions

Exception

at line 225
static private void applyRequire(ComposerFileWriter $writer)

plugin composer 파일에 등록된 플러그인 제어정보를 require에 적용한다.

Parameters

ComposerFileWriter $writer composer file writer

Return Value

void

at line 246
static protected void clearCompiled()

Clear the cached Laravel bootstrapping files.

Return Value

void

at line 269
static protected bool deleteDirectory(string $directory, bool $preserve = false)

delete Directory

Parameters

string $directory directory
bool $preserve preserve

Return Value

bool