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

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

Protected Properties

Свойство Type Description
$composerBinPath string
$filesystem Symfony\Component\Filesystem\Filesystem
$path string
$pusher Pusher
$rootDir string
$workingTempPath string

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

runProcess() protected méthode

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
Résultat Symfony\Component\Process\Process the resulting Process

setComposerBinPath() public méthode

public setComposerBinPath ( string $composerBinPath )
$composerBinPath string

setFilesystem() public méthode

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

setPusher() public méthode

public setPusher ( Pusher $pusher )
$pusher Pusher

setRootDir() public méthode

public setRootDir ( string $rootDir )
$rootDir string

setWorkingTempPath() public méthode

public setWorkingTempPath ( string $workingTempPath )
$workingTempPath string

triggerComposerInstalled() protected méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

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
Résultat string

$filesystem protected_oe property

protected Filesystem,Symfony\Component\Filesystem $filesystem
Résultat Symfony\Component\Filesystem\Filesystem

$path protected_oe property

protected string $path
Résultat string

$pusher protected_oe property

protected Pusher $pusher
Résultat Pusher

$rootDir protected_oe property

protected string $rootDir
Résultat string

$workingTempPath protected_oe property

protected string $workingTempPath
Résultat string