Skip to content

Commit

Permalink
Start working on a license part
Browse files Browse the repository at this point in the history
Refs #11.
  • Loading branch information
franzliedke committed Apr 10, 2016
1 parent 11d7bc8 commit 18495d3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/Parts/License/Part.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace Studio\Parts\License;

use Composer\Spdx\SpdxLicenses;
use Studio\Filesystem\Directory;
use Studio\Parts\AbstractPart;

class Part extends AbstractPart
{

public function setupPackage($composer, Directory $target)
{
if ($this->input->confirm('Do you want to configure a license for your project?')) {
$licenses = new SpdxLicenses();

// 1. Choose a license from a list
// 2. Generate the license file, with year and name
// 3. Add it to composer.json
}
}

}

0 comments on commit 18495d3

Please sign in to comment.