BcComposer
in package
BcComposer
Table of Contents
Properties
- $cd : string
- cd コマンド
- $composerDir : string
- Composer Dir
- $currentDir : string
- 現在のディレクトリ
- $export : string
- export コマンド
- $php : string
- php パス
Methods
- changeMinimumStabilityToDev() : void
- changeMinimumStabilityToDev
- checkComposer() : mixed
- Composer がインストールされているかチェックする
- checkEnv() : mixed
- 環境チェック
- clearCache() : array<string|int, mixed>
- キャッシュをクリアする
- createCommand() : string
- コマンド作成
- deleteReplace() : void
- replace を削除する
- disableBlockInsecure() : void
- 脆弱パッケージの導入を禁止を解除する ユニットテストで過去バージョンのインストールテストがあるため、一時的に解除するのに利用する
- execCommand() : array<string|int, mixed>
- コマンド実行
- install() : array<string|int, mixed>
- composer install 実行
- installComposer() : array<string|int, mixed>
- Composer のインストール
- relaxFrameworkConstraints() : void
- baser-core が自身の composer.json で依存管理しているフレームワーク系パッケージについて、 ルート composer.json 側の重複した明示pinを削除し、baser-core側の制約を優先させる
- require() : array<string|int, mixed>
- composer require 実行
- selfUpdate() : array<string|int, mixed>
- composer self-update 実行
- setup() : mixed
- Setup
- setupComposerForDistribution() : array<string|int, mixed>
- 配布用に composer.json をセットアップする
- update() : array<string|int, mixed>
- composer update 実行
Properties
$cd
cd コマンド
public
static string
$cd
$composerDir
Composer Dir
public
static string
$composerDir
$currentDir
現在のディレクトリ
public
static string
$currentDir
$export
export コマンド
public
static string
$export
$php
php パス
public
static string
$php
= 'php'
Methods
changeMinimumStabilityToDev()
changeMinimumStabilityToDev
public
static changeMinimumStabilityToDev() : void
Tags
checkComposer()
Composer がインストールされているかチェックする
public
static checkComposer() : mixed
Tags
checkEnv()
環境チェック
public
static checkEnv() : mixed
Tags
clearCache()
キャッシュをクリアする
public
static clearCache() : array<string|int, mixed>
Return values
array<string|int, mixed>createCommand()
コマンド作成
public
static createCommand(string $command) : string
Parameters
- $command : string
Tags
Return values
stringdeleteReplace()
replace を削除する
public
static deleteReplace() : void
disableBlockInsecure()
脆弱パッケージの導入を禁止を解除する ユニットテストで過去バージョンのインストールテストがあるため、一時的に解除するのに利用する
public
static disableBlockInsecure() : void
Tags
execCommand()
コマンド実行
public
static execCommand(string $command) : array<string|int, mixed>
Parameters
- $command : string
Tags
Return values
array<string|int, mixed>install()
composer install 実行
public
static install() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>installComposer()
Composer のインストール
public
static installComposer() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>relaxFrameworkConstraints()
baser-core が自身の composer.json で依存管理しているフレームワーク系パッケージについて、 ルート composer.json 側の重複した明示pinを削除し、baser-core側の制約を優先させる
public
static relaxFrameworkConstraints() : void
配布パッケージのルート composer.json は cakephp/cakephp 等、本来 baser-core の間接依存に すぎないパッケージを明示的に重複してrequireしている。この重複pinが古いバージョンのまま 残っていると、baser-core を新しいバージョンへ require する際、要求されるフレームワーク バージョンと衝突して失敗するため、require実行前に呼び出す。
Tags
require()
composer require 実行
public
static require(string $package, string $version) : array<string|int, mixed>
Parameters
- $package : string
- $version : string
Tags
Return values
array<string|int, mixed>selfUpdate()
composer self-update 実行
public
static selfUpdate() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>setup()
Setup
public
static setup([string $php = '' ][, mixed $dir = '' ]) : mixed
Parameters
- $php : string = ''
- $dir : mixed = ''
Tags
setupComposerForDistribution()
配布用に composer.json をセットアップする
public
static setupComposerForDistribution(string $version) : array<string|int, mixed>
Parameters
- $version : string
Tags
Return values
array<string|int, mixed>update()
composer update 実行
public
static update() : array<string|int, mixed>