Skip to content

Commit

Permalink
bug symfony#246 Change license to proprietary when installing a new p…
Browse files Browse the repository at this point in the history
…roject from a skeleton (fabpot)

This PR was merged into the 1.0-dev branch.

Discussion
----------

Change license to proprietary when installing a new project from a skeleton

needed to merge symfony/skeleton#48

Commits
-------

e5416bf change license to proprietary when installing a new project from a skeleton
  • Loading branch information
fabpot committed Dec 19, 2017
2 parents 7c602eb + e5416bf commit cd39871
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Flex.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public function configureProject(Event $event)
{
$json = new JsonFile(Factory::getComposerFile());
$manipulator = new JsonManipulator(file_get_contents($json->getPath()));
// new projects are most of the time proprietary
$manipulator->addProperty('license', 'proprietary');
// 'name' and 'description' are only required for public packages
$manipulator->removeProperty('name');
$manipulator->removeProperty('description');
Expand Down

0 comments on commit cd39871

Please sign in to comment.