Ayaline\Bundle\ComposerBundle\Consumer\Step\DumpFileStep::execute PHP Method

execute() public method

public execute ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, $directory )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
    public function execute(ConsumerEvent $event, $directory)
    {
        $this->triggerNewStep($event, array('message' => 'Starting async job'));
        $this->filesystem->mkdir($this->workingTempPath . '/' . $directory);
        $this->filesystem->dumpFile(sprintf('%s/%s/composer.json', $this->workingTempPath, $directory), $event->getMessage()->getValue('body'));
        return 0;
    }
DumpFileStep