1
0
Fork 0

Added notice about need of zip extension

pull/1728/head
Serge Smertin 2013-04-04 00:00:02 +02:00
parent 07920c48a6
commit 6cec5b0399
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,14 @@ class ArtifactRepository extends ArrayRepository
protected function initialize()
{
parent::initialize();
if (!extension_loaded('zip')) {
$msg = 'In order to use <comment>artifact</comment> repository, ' .
'you need to have <comment>zip</comment> extension enabled';
$this->io->write($msg);
return;
}
$this->scanDirectory($this->lookup);
}