Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
webbingbrasil/core-module / Commands / PublishThemeAssetsCommand.php
Size: Mime:
<?php
/**
 * Created by PhpStorm.
 * User: danilo
 * Date: 18/12/15
 * Time: 10:56
 */
namespace Modules\Core\Commands;

use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputArgument;

class PublishThemeAssetsCommand extends Command
{
    protected $name = 'webbing:publish:theme';
    protected $description = 'Publish theme assets';

    public function fire()
    {
        $theme = $this->argument('theme', null);
        $opts = [];
        if (!empty($theme)) {
            $opts = ['theme' => $this->argument('theme')];
        }

        $this->call('themes:publish', $opts);
    }

    protected function getArguments()
    {
        return [
            ['theme', InputArgument::OPTIONAL, 'Name of the theme you wish to publish']
        ];
    }
}