Added notice about need of zip extension

main
Serge Smertin 11 years ago
parent 07920c48a6
commit 6cec5b0399

@ -36,6 +36,14 @@ class ArtifactRepository extends ArrayRepository
protected function initialize() protected function initialize()
{ {
parent::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); $this->scanDirectory($this->lookup);
} }

Loading…
Cancel
Save