PHP Class Ayaline\Bundle\ComposerBundle\Consumer\Step\AbstractStep

Author: Hubert Moutot ([email protected])
Inheritance: implements Ayaline\Bundle\ComposerBundle\Consumer\Step\StepInterface
Datei anzeigen Open project: pborreli/composer-service

Protected Properties

Property Type Description
$composerBinPath string
$filesystem Symfony\Component\Filesystem\Filesystem
$path string
$pusher Pusher
$rootDir string
$workingTempPath string

Public Methods

Method Description
setComposerBinPath ( string $composerBinPath )
setFilesystem ( Symfony\Component\Filesystem\Filesystem $filesystem )
setPusher ( Pusher $pusher )
setRootDir ( string $rootDir )
setWorkingTempPath ( string $workingTempPath )

Protected Methods

Method Description
getChannels ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event ) : array Extracts a channel name from a ConsumerEvent.
runProcess ( string $commandline, string $workingDirectory, string &$output ) : Process Runs a process.
triggerComposerInstalled ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message ) Triggers a "consumer:composer-installed" message on Pusher.
triggerComposerOutput ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message ) Triggers a "consumer:composer-output" message on Pusher.
triggerError ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message ) Triggers a "consumer:error" message on Pusher.
triggerNewStep ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message ) Triggers a "consumer:new-step" message on Pusher.
triggerStepError ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message ) Triggers a "consumer:step-error" message on Pusher.
triggerSuccess ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message ) Triggers a "consumer:success" message on Pusher.
triggerVulnerabilities ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message ) Triggers a "consumer:vulnerabilities" message on Pusher.

Method Details

getChannels() protected method

Extracts a channel name from a ConsumerEvent.
protected getChannels ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event ) : array
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
return array

runProcess() protected method

Runs a process.
protected runProcess ( string $commandline, string $workingDirectory, string &$output ) : Process
$commandline string the command line to execute
$workingDirectory string the current working directory
$output string the output
return Symfony\Component\Process\Process the resulting Process

setComposerBinPath() public method

public setComposerBinPath ( string $composerBinPath )
$composerBinPath string

setFilesystem() public method

public setFilesystem ( Symfony\Component\Filesystem\Filesystem $filesystem )
$filesystem Symfony\Component\Filesystem\Filesystem

setPusher() public method

public setPusher ( Pusher $pusher )
$pusher Pusher

setRootDir() public method

public setRootDir ( string $rootDir )
$rootDir string

setWorkingTempPath() public method

public setWorkingTempPath ( string $workingTempPath )
$workingTempPath string

triggerComposerInstalled() protected method

Triggers a "consumer:composer-installed" message on Pusher.
protected triggerComposerInstalled ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
$message array

triggerComposerOutput() protected method

Triggers a "consumer:composer-output" message on Pusher.
protected triggerComposerOutput ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
$message array

triggerError() protected method

Triggers a "consumer:error" message on Pusher.
protected triggerError ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
$message array

triggerNewStep() protected method

Triggers a "consumer:new-step" message on Pusher.
protected triggerNewStep ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
$message array

triggerStepError() protected method

Triggers a "consumer:step-error" message on Pusher.
protected triggerStepError ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
$message array

triggerSuccess() protected method

Triggers a "consumer:success" message on Pusher.
protected triggerSuccess ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
$message array

triggerVulnerabilities() protected method

Triggers a "consumer:vulnerabilities" message on Pusher.
protected triggerVulnerabilities ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, array $message )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
$message array

Property Details

$composerBinPath protected_oe property

protected string $composerBinPath
return string

$filesystem protected_oe property

protected Filesystem,Symfony\Component\Filesystem $filesystem
return Symfony\Component\Filesystem\Filesystem

$path protected_oe property

protected string $path
return string

$pusher protected_oe property

protected Pusher $pusher
return Pusher

$rootDir protected_oe property

protected string $rootDir
return string

$workingTempPath protected_oe property

protected string $workingTempPath
return string