Liip\RMT\Action\BuildPharPackageAction::create PHP Method

create() protected method

Handles the creation of the package.
protected create ( )
    protected function create()
    {
        $this->setReleaseVersion();
        $output = $this->getDestination() . '/' . $this->getFilename();
        $phar = new Phar($output, FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::KEY_AS_FILENAME);
        $phar->buildFromDirectory(Context::getParam('project-root'), $this->options['excluded-paths']);
        $phar->setMetadata(array_merge(array('version' => $this->releaseVersion), $this->options['metadata']));
        $phar->setDefaultStub($this->options['default-stub-cli'], $this->options['default-stub-web']);
        return $output;
    }