Repository URL to install this package:
|
Version:
1.0.0 ▾
|
<?php
/**
* Created by PhpStorm.
* User: danilo
* Date: 18/12/15
* Time: 10:58
*/
namespace Modules\Core\Commands\Installers\Scripts;
use Illuminate\Console\Command;
use Modules\Core\Commands\Installers\SetupScript;
class OptimizeInstall implements SetupScript
{
/**
* Fire the install script
* @param Command $command
* @return mixed
*/
public function fire(Command $command)
{
$command->blockMessage('Optimization', 'Optimizing installation...', 'comment');
if ($command->option('verbose')) {
$command->call('clear-compiled');
$command->call('optimize');
return;
}
$command->callSilent('clear-compiled');
$command->callSilent('optimize');
}
}