Add SVN support to PHPCI.

Closes #759
This commit is contained in:
Dzhilkibaev Nadir 2015-01-26 21:12:48 +03:00 committed by Dan Cryer
commit 35a6d1f577
4 changed files with 188 additions and 1 deletions

View file

@ -311,10 +311,11 @@ class ProjectController extends PHPCI\Controller
'remote' => Lang::get('remote'),
'local' => Lang::get('local'),
'hg' => Lang::get('hg'),
'svn' => Lang::get('svn'),
);
$field = Form\Element\Select::create('type', Lang::get('where_hosted'), true);
$field->setPattern('^(github|bitbucket|gitlab|remote|local|hg)');
$field->setPattern('^(github|bitbucket|gitlab|remote|local|hg|svn)');
$field->setOptions($options);
$field->setClass('form-control')->setContainerClass('form-group');
$form->addField($field);