for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of `Composer as a service`.
*
* (c) Pascal Borreli <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Ayaline\Bundle\ComposerBundle\Consumer\Step;
use Sonata\NotificationBundle\Consumer\ConsumerEvent;
/**
* @author Hubert Moutot <[email protected]>
class FinalizeStep extends AbstractStep
{
* {@inheritdoc}
public function execute(ConsumerEvent $event, $directory)
$sha1LockFile = sha1_file($this->workingTempPath.'/'.$directory.'/composer.lock');
$this->triggerSuccess($event, ['link' => '/assets/'.$sha1LockFile.'/vendor.zip']);
$this->filesystem->remove($this->workingTempPath.'/'.$directory);
return 0;
}