Ayaline\Bundle\ComposerBundle\Consumer\Step\FinalizeStep::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)
    {
        $sha1LockFile = sha1_file($this->workingTempPath . '/' . $directory . '/composer.lock');
        $this->triggerSuccess($event, array('link' => '/assets/' . $sha1LockFile . '/vendor.zip'));
        $this->filesystem->remove($this->workingTempPath . '/' . $directory);
        return 0;
    }
FinalizeStep