class EmpireDependencyHelper

Class EmpireDependencyHelper contains helper logic such as dependency manager, database helper

Methods

static mixed
runCommand(string $command, null|int $timeout = null, bool $returnOutput = false)

Execute command using process

static 
databaseSchemaUpdate()

Clear doctrine cache and update database schema

static 
installBowerPackages(string $originDir, null|OutputInterface $output = null)

Execute bower install command

static 
installNodePackages(string $originDir)

Execute node install command

static bool
copyDirectory(string $source, string $destination)

Copies contents from $source to $destination folders (default).

static bool
recovery(string $source, string $destination)

No description

static bool
deleteDirectory(string $source, bool $recursion = true)

Removes all files from $source, optionally ignoring SVN meta-data folders (default).

static 
deleteAllFilesInDirectory(string $dir)

Delete all files in directory

static bool
delTree(string $dir)

Delete directory with all subdirectories

static string
getStringFromFileWithoutComments(string $file)

Get file content without comments

static bool|string
getEmberPluginOutputPath(string $dataSrcDir)

Get Ember plugin output path

static bool|string
getPathInWeb(string $path)

Find web path

static bool
compileEmberApp(string $originDir)

Compile Ember application

static 
runWebShopConsoleCommand(string $commandName, int $timeOut = 60)

Execute command using process

static 
assetsDump(string $projectRoot, string $cacheDir)

Dump assets

static mixed
getUglifyJS2Bin()

Get uglifyjs bin

static mixed
getUglifyCSSBin()

Get uglifycss bin

static mixed
getUNodeJSBin()

Get nodejs bin

static array|bool|false|null|string
getPhp(bool $includeArgs = true)

Get php bin

Details

at line 34
static mixed runCommand(string $command, null|int $timeout = null, bool $returnOutput = false)

Execute command using process

Parameters

string $command
null|int $timeout
bool $returnOutput

Return Value

mixed

See also

Process

at line 57
static databaseSchemaUpdate()

Clear doctrine cache and update database schema

at line 68
static installBowerPackages(string $originDir, null|OutputInterface $output = null)

Execute bower install command

Parameters

string $originDir
null|OutputInterface $output

at line 91
static installNodePackages(string $originDir)

Execute node install command

Parameters

string $originDir

at line 112
static bool copyDirectory(string $source, string $destination)

Copies contents from $source to $destination folders (default).

Parameters

string $source
string $destination

Return Value

bool true on success false otherwise

at line 151
static bool recovery(string $source, string $destination)

Parameters

string $source
string $destination

Return Value

bool

at line 179
static bool deleteDirectory(string $source, bool $recursion = true)

Removes all files from $source, optionally ignoring SVN meta-data folders (default).

Parameters

string $source
bool $recursion

Return Value

bool

at line 212
static deleteAllFilesInDirectory(string $dir)

Delete all files in directory

Parameters

string $dir

at line 228
static bool delTree(string $dir)

Delete directory with all subdirectories

Parameters

string $dir

Return Value

bool

at line 244
static string getStringFromFileWithoutComments(string $file)

Get file content without comments

Parameters

string $file

Return Value

string

at line 283
static bool|string getEmberPluginOutputPath(string $dataSrcDir)

Get Ember plugin output path

Parameters

string $dataSrcDir

Return Value

bool|string

at line 303
static bool|string getPathInWeb(string $path)

Find web path

Parameters

string $path

Return Value

bool|string

at line 327
static bool compileEmberApp(string $originDir)

Compile Ember application

Parameters

string $originDir

Return Value

bool

at line 353
static runWebShopConsoleCommand(string $commandName, int $timeOut = 60)

Execute command using process

Parameters

string $commandName
int $timeOut

at line 377
static assetsDump(string $projectRoot, string $cacheDir)

Dump assets

Parameters

string $projectRoot
string $cacheDir

at line 402
static mixed getUglifyJS2Bin()

Get uglifyjs bin

Return Value

mixed

at line 411
static mixed getUglifyCSSBin()

Get uglifycss bin

Return Value

mixed

at line 420
static mixed getUNodeJSBin()

Get nodejs bin

Return Value

mixed

at line 431
static protected array|bool|false|null|string getPhp(bool $includeArgs = true)

Get php bin

Parameters

bool $includeArgs

Return Value

array|bool|false|null|string