Class ComposerLintTask

InheritanceComposerLintTask » Task

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() The init method: do init steps ComposerLintTask
main() The main entry point ComposerLintTask
setComposer() Composer to execute. If unset, will attempt composer.phar in project basedir, and if that fails, will attempt global composer installation. ComposerLintTask
setDir() The setter for the dir ComposerLintTask
setFile() The setter for the file ComposerLintTask
setPassthru() Whether to use PHP's passthru() function instead of exec() ComposerLintTask

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
findComposer() Find composer installation ComposerLintTask
findFiles() Find the composer.json files using Phing's directory scanner ComposerLintTask

Property Details

$composer protected property
protected $composer null
$dir protected property
protected $dir null
$file protected property
protected $file null
$passthru protected property
protected $passthru false

Method Details

findComposer() protected method

Find composer installation

protected void findComposer ( )
findFiles() protected method

Find the composer.json files using Phing's directory scanner

protected array findFiles ( )
init() public method

The init method: do init steps

public void init ( )
main() public method

The main entry point

public void main ( )
setComposer() public method

Composer to execute. If unset, will attempt composer.phar in project basedir, and if that fails, will attempt global composer installation.

public void setComposer ( $str )
$str string

Individual file to validate

setDir() public method

The setter for the dir

public void setDir ( $str )
$str string

Directory to crawl recursively for composer files

setFile() public method

The setter for the file

public void setFile ( $str )
$str string

Individual file to validate

setPassthru() public method

Whether to use PHP's passthru() function instead of exec()

public void setPassthru ( $passthru )
$passthru boolean

If passthru shall be used